summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-07-16 08:05:12 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-07-16 08:05:12 +0000
commit76861bf832577df0883dee12a502a8e3d5ae6a11 (patch)
treea73c36e38cd118a47e96af53a4ef0311beadb9db /src
parent9fdde3fe9f514f021728db63f387593c273f028e (diff)
downloads6-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.c4
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) ;
}
}