diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-02-02 23:30:37 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-02-02 23:30:37 +0000 |
commit | ebb408e5adca052b62d453c31326437740a64f64 (patch) | |
tree | 9955d905f91434c0487adf12dd957ae183330ea1 /src | |
parent | c41e2c561c4be340eeadc97ad9a7e0279aa3959f (diff) | |
download | s6-ebb408e5adca052b62d453c31326437740a64f64.tar.xz |
Fix argc check in s6-svlisten1
Diffstat (limited to 'src')
-rw-r--r-- | src/supervision/s6-svlisten1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-svlisten1.c b/src/supervision/s6-svlisten1.c index 6c4bb36..a669403 100644 --- a/src/supervision/s6-svlisten1.c +++ b/src/supervision/s6-svlisten1.c @@ -44,7 +44,7 @@ int main (int argc, char const *const *argv, char const *const *envp) argc -= l.ind ; argv += l.ind ; if (t) tain_from_millisecs(&tto, t) ; else tto = tain_infinite_relative ; } - if (!argc) dieusage() ; + if (argc < 2) dieusage() ; tain_now_g() ; tain_add_g(&deadline, &tto) ; spfd = s6_svlisten_selfpipe_init() ; |