From 2780b6ea7bf7f2343ed3e9da1ab8bdd01d3c0ee3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 17 Sep 2021 11:23:10 +0000 Subject: Ensure proper detection of s6-svscan not running in all cases Signed-off-by: Laurent Bercot --- src/libs6/s6_supervise_link_names.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/libs6/s6_supervise_link_names.c b/src/libs6/s6_supervise_link_names.c index 71fff1d..9af573f 100644 --- 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 ; -- cgit v1.2.3