diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/spawni.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/spawni.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c index 1edf62c..eca1a84 100644 --- a/sysdeps/unix/sysv/linux/spawni.c +++ b/sysdeps/unix/sysv/linux/spawni.c @@ -1,5 +1,5 @@ /* POSIX spawn interface. Linux version. - Copyright (C) 2016-2024 Free Software Foundation, Inc. + Copyright (C) 2016-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -115,7 +115,7 @@ __spawni_child (void *arguments) memset (&sa, '\0', sizeof (sa)); sigset_t hset; - __sigprocmask (SIG_BLOCK, 0, &hset); + __sigprocmask (SIG_BLOCK, NULL, &hset); for (int sig = 1; sig < _NSIG; ++sig) { if ((attr->__flags & POSIX_SPAWN_SETSIGDEF) @@ -129,7 +129,7 @@ __spawni_child (void *arguments) sa.sa_handler = SIG_IGN; else { - __libc_sigaction (sig, 0, &sa); + __libc_sigaction (sig, NULL, &sa); if (sa.sa_handler == SIG_IGN || sa.sa_handler == SIG_DFL) continue; sa.sa_handler = SIG_DFL; @@ -138,7 +138,7 @@ __spawni_child (void *arguments) else continue; - __libc_sigaction (sig, &sa, 0); + __libc_sigaction (sig, &sa, NULL); } #ifdef _POSIX_PRIORITY_SCHEDULING @@ -172,7 +172,7 @@ __spawni_child (void *arguments) goto fail; /* Execute the file actions. */ - if (file_actions != 0) + if (file_actions != NULL) { int cnt; struct rlimit64 fdlimit; |