summaryrefslogtreecommitdiff
path: root/src/conn-tools/s6-sudoc.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 00:09:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 00:09:01 +0000
commitb4794e59c5acfb3d9103bc8732295adb47643346 (patch)
tree9ce2fe026ca08b4cd4e4b2d8361a852eb12421bb /src/conn-tools/s6-sudoc.c
parent6199d6b19810fb50b6f3dce3c59c3015d5c2236d (diff)
downloads6-networking-b4794e59c5acfb3d9103bc8732295adb47643346.tar.xz
Test a shutdown in s6-sudoc, see if it helps the BSDs
Diffstat (limited to 'src/conn-tools/s6-sudoc.c')
-rw-r--r--src/conn-tools/s6-sudoc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conn-tools/s6-sudoc.c b/src/conn-tools/s6-sudoc.c
index 823d7cb..46541fb 100644
--- a/src/conn-tools/s6-sudoc.c
+++ b/src/conn-tools/s6-sudoc.c
@@ -1,5 +1,7 @@
/* ISC license. */
+#include <skalibs/nonposix.h>
+#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -91,6 +93,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (!unixmessage_sender_timed_flush_g(&b7, &deadline))
strerr_diefu1sys(111, "send args to server") ;
unixmessage_sender_free(&b7) ;
+ shutdown(7, SHUT_WR) ;
{
char c ;
if (buffer_timed_get_g(&b6, &c, 1, &deadline) < 1)