From c84b8ade3f2d1349a6e4b68b1bd497b0909cfcda Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 16 Jul 2017 15:57:07 +0000 Subject: Propagate fd_close() changes, fix deps for ftrigr_updateb() --- src/daemontools-extras/s6-log.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/daemontools-extras/s6-log.c') diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index c57e6d7..4a138fe 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -369,17 +369,13 @@ static int rotator (logdir_t *ldp) } if (coe(fd) < 0) { - int e = errno ; fd_close(fd) ; - errno = e ; if (verbosity) strerr_warnwu2sys("coe ", x) ; goto fail ; } if (fd_chmod(fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) < 0) { - int e = errno ; fd_close(fd) ; - errno = e ; if (verbosity) strerr_warnwu3sys("fchmod ", x, " to 0644") ; goto fail ; } @@ -441,18 +437,14 @@ static int rotator (logdir_t *ldp) } if (fd_sync(fd) < 0) { - int e = errno ; fd_close(fd) ; - errno = e ; if (verbosity) strerr_warnwu2sys("fd_sync ", x) ; goto fail ; } tain_now_g() ; if (fd_chmod(fd, S_IRWXU | S_IRGRP | S_IROTH) < 0) { - int e = errno ; fd_close(fd) ; - errno = e ; if (verbosity) strerr_warnwu3sys("fd_chmod ", x, " to 0744") ; goto fail ; } -- cgit v1.2.3