summaryrefslogtreecommitdiff
path: root/src/libs6/s6_svc_write.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 15:57:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 15:57:07 +0000
commitc84b8ade3f2d1349a6e4b68b1bd497b0909cfcda (patch)
treef6a3a51e47e613a0271e0296b0a80fb04816d818 /src/libs6/s6_svc_write.c
parentd945bca329f7a13741e1d3afcf9f0f73f6c70ce9 (diff)
downloads6-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.c2
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) ;