s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit 2780b6ea7bf7f2343ed3e9da1ab8bdd01d3c0ee3
parent 9bafd9ae5ee8c5539c4b6b0be7f6a72aa3ace8a1
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri, 17 Sep 2021 11:23:10 +0000

 Ensure proper detection of s6-svscan not running in all cases

Signed-off-by: Laurent Bercot <ska@appnovation.com>

Diffstat:
Msrc/libs6/s6_supervise_link_names.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/libs6/s6_supervise_link_names.c b/src/libs6/s6_supervise_link_names.c @@ -128,6 +128,7 @@ int s6_supervise_link_names (char const *scdir, char const *const *servicedirs, } stralloc_free(&rpsa) ; r = s6_svc_writectl(scdir, S6_SVSCAN_CTLDIR, "a", 1) ; + if (!r) errno = ENXIO ; if (r <= 0) goto errsa ; killopts = 3 ; if (ftrigr_wait_and(&a, ids, m, deadline, stamp) < 0) goto errsa ;