diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-17 16:00:25 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-17 16:00:25 +0000 |
| commit | 4cdcab0506e76666800d2bc111c602bb3154cc30 (patch) | |
| tree | 0debe5948f819f7ed030f569fc333c1d07ff9318 /src/supervision | |
| parent | 41dec6436242c4daccdd9fdee3ac052004c439bd (diff) | |
| download | s6-4cdcab0506e76666800d2bc111c602bb3154cc30.tar.gz | |
s6-svscan trivial fix; s6-svunlink bugfix; start prep for 2.15.0.0
s6_supervise_unlink_names can spawn a s6-ftrigrd to wait for an 'x'
event. This creates a fifodir under $scandir/$name/event. But after
the unlink, $scandir/$name doesn't exist anymore, so s6-ftrigrd
fails to clean it up. To fix that, we subscribe with the realpath
of $scandir/$name instead.
Diffstat (limited to 'src/supervision')
| -rw-r--r-- | src/supervision/s6-svscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-svscan.c b/src/supervision/s6-svscan.c index cf73c13..2f425a2 100644 --- a/src/supervision/s6-svscan.c +++ b/src/supervision/s6-svscan.c @@ -683,7 +683,7 @@ int main (int argc, char const *const *argv) PROG = "s6-svscan" ; golc = gol_main(argc, argv, 0, 0, rgola, GOLA_N, 0, wgola) ; argc -= golc ; argv += golc ; - if (argc < 2) dieusage() ; + if (!argc) dieusage() ; if (wgola[GOLA_MAX]) { if (!uint320_scan(wgola[GOLA_MAX], &max)) |
