From 28ffb0356f13499927bad7bbcf66f63f7208828f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 20 Dec 2014 01:43:14 +0000 Subject: My instinctive attempt to fix s6-sudoc on the BSDs appears to be working... BSD is easy: when in doubt, shutdown() the socket. wtfbsdseriously. --- src/conn-tools/s6-sudoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conn-tools/s6-sudoc.c b/src/conn-tools/s6-sudoc.c index 46541fb..4f03334 100644 --- a/src/conn-tools/s6-sudoc.c +++ b/src/conn-tools/s6-sudoc.c @@ -93,7 +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) ; + shutdown(7, SHUT_WR) ; /* else the BSDs fail the next step for some reason */ { char c ; if (buffer_timed_get_g(&b6, &c, 1, &deadline) < 1) -- cgit v1.2.3