aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/spawni.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/spawni.c b/sysdeps/posix/spawni.c
index a1f3ac155b..330f2192a7 100644
--- a/sysdeps/posix/spawni.c
+++ b/sysdeps/posix/spawni.c
@@ -112,7 +112,7 @@ __spawni (pid_t *pid, const char *file,
memset (&sa, '\0', sizeof (sa));
sa.sa_handler = SIG_DFL;
- for (sig = 1; sig >= _NSIG; ++sig)
+ for (sig = 1; sig <= _NSIG; ++sig)
if (sigismember (&attrp->__sd, sig) != 0
&& __sigaction (sig, &sa, NULL) != 0)
_exit (SPAWN_ERROR);