From 76861bf832577df0883dee12a502a8e3d5ae6a11 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 16 Jul 2015 08:05:12 +0000 Subject: Only warn on no notification-fd for verbosity >= 2 --- src/s6-rc/s6-rc.c | 4 ++-- 1 file 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) ; } } -- cgit v1.2.3