From 478dd24279f833042a94590df0726d163b576af5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 5 Oct 2015 02:04:55 +0000 Subject: - minor bugfix in s6-log (correct return when stat() fails) - remove fucking -Bsymbolic - add s6-setsid to stage 1 example - prepare shutdown functionality for s6-svscan - version: 2.2.1.1 --- src/daemontools-extras/s6-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemontools-extras') diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index 6d323b7..4c761d0 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -287,7 +287,7 @@ static int finish (logdir_t *ldp, char const *name, char suffix) byte_copy(x, dirlen, ldp->dir) ; x[dirlen] = '/' ; byte_copy(x + dirlen + 1, namelen + 1, name) ; - if (stat(x, &st) < 0) return errno == ENOENT ; + if (stat(x, &st) < 0) return errno == ENOENT ? 0 : -1 ; if (st.st_nlink == 1) { char y[dirlen + 29] ; -- cgit v1.2.3