summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_sender_flush.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-02-19 14:54:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-02-19 14:54:44 +0000
commit15eda3d33f9e1160d438d370acd442ef3dbba63f (patch)
tree88f50dd23414f9bee659a6438fa62131825d072d /src/libunixonacid/unixmessage_sender_flush.c
parent332d4cbc24ab82cc77bccb0ce2c158c5e86a8fac (diff)
downloadskalibs-15eda3d33f9e1160d438d370acd442ef3dbba63f.tar.xz
Add DragonFly macro; remove nbwaitall and ancilautoclose
Diffstat (limited to 'src/libunixonacid/unixmessage_sender_flush.c')
-rw-r--r--src/libunixonacid/unixmessage_sender_flush.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libunixonacid/unixmessage_sender_flush.c b/src/libunixonacid/unixmessage_sender_flush.c
index eb2645c..fa1438f 100644
--- a/src/libunixonacid/unixmessage_sender_flush.c
+++ b/src/libunixonacid/unixmessage_sender_flush.c
@@ -1,6 +1,5 @@
/* ISC license. */
-#include <skalibs/sysdeps.h>
#include <skalibs/nonposix.h>
#include <sys/socket.h>
#include <sys/uio.h>
@@ -104,7 +103,6 @@ int unixmessage_sender_flush (unixmessage_sender_t *b)
do r = sendmsg(b->fd, &hdr, MSG_NOSIGNAL) ;
while (r < 0 && errno == EINTR) ;
if (r <= 0) return 0 ;
-#ifndef SKALIBS_HASANCILAUTOCLOSE
if (nfds)
{
size_t i = 0 ;
@@ -114,7 +112,6 @@ int unixmessage_sender_flush (unixmessage_sender_t *b)
if (fd < 0) (*b->closecb)(-(fd+1), b->closecbdata) ;
}
}
-#endif
if ((size_t)r < 6 + len)
{
b->shorty = 6 + len - r ;