From b4794e59c5acfb3d9103bc8732295adb47643346 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 20 Dec 2014 00:09:01 +0000 Subject: Test a shutdown in s6-sudoc, see if it helps the BSDs --- src/conn-tools/s6-ioconnect.c | 4 +--- src/conn-tools/s6-sudoc.c | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/conn-tools') diff --git a/src/conn-tools/s6-ioconnect.c b/src/conn-tools/s6-ioconnect.c index e687d70..747a583 100644 --- a/src/conn-tools/s6-ioconnect.c +++ b/src/conn-tools/s6-ioconnect.c @@ -1,7 +1,6 @@ /* ISC license. */ -#include -#include +#include #include #include #include @@ -108,7 +107,6 @@ int main (int argc, char const *const *argv) if (!iobuffer_init(&b[i], a[i][0].fd, a[i][1].fd) < 0) strerr_diefu1sys(111, "iobuffer_init") ; } if (sig_ignore(SIGPIPE) == -1) strerr_diefu1sys(111, "sig_ignore") ; - tain_now_g() ; x[0].fd = selfpipe_init() ; if (x[0].fd < 0) strerr_diefu1sys(111, "selfpipe_init") ; 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 +#include #include #include #include @@ -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) -- cgit v1.2.3