diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-16 15:57:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-16 15:57:07 +0000 |
commit | c84b8ade3f2d1349a6e4b68b1bd497b0909cfcda (patch) | |
tree | f6a3a51e47e613a0271e0296b0a80fb04816d818 /src/libs6/s6_svc_write.c | |
parent | d945bca329f7a13741e1d3afcf9f0f73f6c70ce9 (diff) | |
download | s6-c84b8ade3f2d1349a6e4b68b1bd497b0909cfcda.tar.xz |
Propagate fd_close() changes, fix deps for ftrigr_updateb()
Diffstat (limited to 'src/libs6/s6_svc_write.c')
-rw-r--r-- | src/libs6/s6_svc_write.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libs6/s6_svc_write.c b/src/libs6/s6_svc_write.c index ebd8ab0..3ebf3b4 100644 --- a/src/libs6/s6_svc_write.c +++ b/src/libs6/s6_svc_write.c @@ -12,9 +12,7 @@ int s6_svc_write (char const *fifo, char const *data, size_t datalen) else if (ndelay_off(fd) == -1) return -1 ; else if (fd_write(fd, data, datalen) == -1) { - int e = errno ; fd_close(fd) ; - errno = e ; return -1 ; } fd_close(fd) ; |