summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 01:43:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-20 01:43:14 +0000
commit28ffb0356f13499927bad7bbcf66f63f7208828f (patch)
tree661821a186365c820c4c9b6018a377bae31e7097 /src
parent2206d5f6af8ff8e6a9234331cc088a8ab6897e9d (diff)
downloads6-networking-28ffb0356f13499927bad7bbcf66f63f7208828f.tar.xz
My instinctive attempt to fix s6-sudoc on the BSDs appears to be working...
BSD is easy: when in doubt, shutdown() the socket. wtfbsdseriously.
Diffstat (limited to 'src')
-rw-r--r--src/conn-tools/s6-sudoc.c2
1 files changed, 1 insertions, 1 deletions
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)