diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-19 00:17:59 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-19 00:17:59 +0000 |
commit | 4e8cd2a5ce1630833a8fdd4ee4f4b0f5863aafbf (patch) | |
tree | dc12e76025990e1bcfe818afd7e5c9ea60187308 /src/conn-tools/s6-tcpserver6.c | |
parent | e814348d57a05b61376a58f649515eac1e54a0d4 (diff) | |
download | s6-networking-4e8cd2a5ce1630833a8fdd4ee4f4b0f5863aafbf.tar.xz |
Don't make UCSPI servers die if they can't write to stdout
Diffstat (limited to 'src/conn-tools/s6-tcpserver6.c')
-rw-r--r-- | src/conn-tools/s6-tcpserver6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn-tools/s6-tcpserver6.c b/src/conn-tools/s6-tcpserver6.c index 624bc99..cbfbf2a 100644 --- a/src/conn-tools/s6-tcpserver6.c +++ b/src/conn-tools/s6-tcpserver6.c @@ -361,7 +361,7 @@ int main (int argc, char const *const *argv, char const *const *envp) char fmt[UINT16_FMT] ; unsigned int n = uint16_fmt(fmt, port) ; fmt[n++] = '\n' ; - if (allwrite(1, fmt, n) < n) strerr_diefu1sys(111, "write to stdout") ; + allwrite(1, fmt, n) ; fd_close(1) ; } fmtlocalmaxconn[1+uint_fmt(fmtlocalmaxconn+1, localmaxconn)] = 0 ; |