diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-17 11:23:10 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-17 11:23:10 +0000 |
commit | 2780b6ea7bf7f2343ed3e9da1ab8bdd01d3c0ee3 (patch) | |
tree | be4ee618162580befe3d929ca5bc08c69cb0808e /src | |
parent | 9bafd9ae5ee8c5539c4b6b0be7f6a72aa3ace8a1 (diff) | |
download | s6-2780b6ea7bf7f2343ed3e9da1ab8bdd01d3c0ee3.tar.xz |
Ensure proper detection of s6-svscan not running in all cases
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs6/s6_supervise_link_names.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 ; |