summaryrefslogtreecommitdiff
path: root/src/daemontools-extras/s6-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemontools-extras/s6-log.c')
-rw-r--r--src/daemontools-extras/s6-log.c8
1 files changed, 0 insertions, 8 deletions
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 ;
}