diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-08-04 13:52:15 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-08-04 13:52:15 +0000 |
commit | a360580b002baccad44d77ecf04606e721eee352 (patch) | |
tree | 722e11ac6f454373b52e85038d8a8745a3ddc2ab /src | |
parent | 5eced38e18908d83ec575b2d6717ca56f2f4e94c (diff) | |
download | execline-a360580b002baccad44d77ecf04606e721eee352.tar.xz |
Fix sig_catch() interface
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/execline/forstdin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 (;;) |