From a360580b002baccad44d77ecf04606e721eee352 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 4 Aug 2021 13:52:15 +0000 Subject: Fix sig_catch() interface Signed-off-by: Laurent Bercot --- src/execline/forstdin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/execline/forstdin.c b/src/execline/forstdin.c index f89ce90..6d98d37 100644 --- a/src/execline/forstdin.c +++ b/src/execline/forstdin.c @@ -92,7 +92,7 @@ int main (int argc, char const **argv) if (pids.s) { - if (sig_catch(SIGCHLD, ¶llel_sigchld_handler) < 0) + if (!sig_catch(SIGCHLD, ¶llel_sigchld_handler)) strerr_diefu1sys(111, "install SIGCHLD handler") ; } for (;;) -- cgit v1.2.3