diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-07-16 08:05:12 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-07-16 08:05:12 +0000 |
commit | 76861bf832577df0883dee12a502a8e3d5ae6a11 (patch) | |
tree | a73c36e38cd118a47e96af53a4ef0311beadb9db /src | |
parent | 9fdde3fe9f514f021728db63f387593c273f028e (diff) | |
download | s6-rc-76861bf832577df0883dee12a502a8e3d5ae6a11.tar.xz |
Only warn on no notification-fd for verbosity >= 2
Diffstat (limited to 'src')
-rw-r--r-- | src/s6-rc/s6-rc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c index 381b910..2190404 100644 --- a/src/s6-rc/s6-rc.c +++ b/src/s6-rc/s6-rc.c @@ -117,13 +117,13 @@ static pid_t start_longrun (unsigned int i, int h) byte_copy(servicefn, livelen, live) ; byte_copy(servicefn + livelen, 13, "/servicedirs/") ; byte_copy(servicefn + livelen + 13, svdlen, db->string + db->services[i].x.longrun.servicedir) ; - if (h && verbosity < 2) + if (h) { byte_copy(servicefn + livelen + 13 + svdlen, 17, "/notification-fd") ; if (access(servicefn, F_OK) < 0) { h = 2 ; - if (verbosity && errno == ENOENT) + if (verbosity >= 2 && errno == ENOENT) strerr_warnwu2sys("access ", servicefn) ; } } |