From ebb408e5adca052b62d453c31326437740a64f64 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 2 Feb 2016 23:30:37 +0000 Subject: Fix argc check in s6-svlisten1 --- src/supervision/s6-svlisten1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() ; -- cgit v1.2.3