echo_srv: Do not close bogus file descriptors
authorAndreas Schneider <asn@samba.org>
Fri, 28 Sep 2018 10:55:49 +0000 (12:55 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 23 Oct 2018 13:39:19 +0000 (15:39 +0200)
commit92891453fb69adb66ea591ed1343c2da821b09d3
treedaec4127fdd545cd356ecf5abe0e5b4fc174b0fe
parent326e9f8cd33aeac5d4010910cd32f98b7365bdb7
echo_srv: Do not close bogus file descriptors

==1564== Warning: invalid file descriptor 1048564 in syscall close()
==1564==    at 0x4D18534: close (in /lib64/libc-2.27.so)
==1564==    by 0x4046A74: libc_close (socket_wrapper.c:760)
==1564==    by 0x405105C: swrap_close (socket_wrapper.c:5933)
==1564==    by 0x40511F5: close (socket_wrapper.c:5979)
==1564==    by 0x401679: become_daemon (echo_srv.c:202)
==1564==    by 0x402D44: main (echo_srv.c:896)
==1563==

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
tests/echo_srv.c