diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-10-26 21:31:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-10-26 21:31:16 +0000 |
commit | bc714f8001edbb26ebf07411cf92e9ba2f756b35 (patch) | |
tree | e0812fa851135a518209640876b1dc4dd9b7dfad /src/libunixonacid/ancil_send_fd.c | |
parent | 7530e8cdd506ecec1f4ad3bbd55f94de5a6d63ac (diff) | |
download | skalibs-bc714f8001edbb26ebf07411cf92e9ba2f756b35.tar.xz |
Refactor textmessage/textclient with channel creation around ancil_*
Diffstat (limited to 'src/libunixonacid/ancil_send_fd.c')
-rw-r--r-- | src/libunixonacid/ancil_send_fd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libunixonacid/ancil_send_fd.c b/src/libunixonacid/ancil_send_fd.c index 98366c7..939d06c 100644 --- a/src/libunixonacid/ancil_send_fd.c +++ b/src/libunixonacid/ancil_send_fd.c @@ -7,7 +7,6 @@ #include <sys/uio.h> #include <sys/socket.h> -#include <skalibs/djbunix.h> #include <skalibs/ancil.h> #include <skalibs/posixishard.h> @@ -40,6 +39,5 @@ int ancil_send_fd (int sock, int fd, char ch) do r = sendmsg(sock, &hdr, MSG_NOSIGNAL) ; while (r < 0 && errno == EINTR) ; if (r <= 0) return 0 ; - fd_close(fd) ; return 1 ; } |