commit ebb408e5adca052b62d453c31326437740a64f64
parent c41e2c561c4be340eeadc97ad9a7e0279aa3959f
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Tue, 2 Feb 2016 23:30:37 +0000
Fix argc check in s6-svlisten1
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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() ;