diff options
author | kib <kib@FreeBSD.org> | 2015-08-30 04:46:44 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-08-30 04:46:44 +0000 |
commit | 8d79bfab265fe14531309e5f44f8d9d242c23449 (patch) | |
tree | 1827abbd776bace84aa5b3be1673d5ff0c417794 /lib/libc | |
parent | 47741465e9d62d822a2aacdccaad1685dfa8c4d3 (diff) | |
download | FreeBSD-src-8d79bfab265fe14531309e5f44f8d9d242c23449.zip FreeBSD-src-8d79bfab265fe14531309e5f44f8d9d242c23449.tar.gz |
Fix a mistake in r287292. Despite correctly stating intent in the
comment above, POSIX_SPAWN_SETSIGMASK and POSIX_SPAWN_SETSIGDEF
handlers used libthr interposed functions instead of syscalls.
Noted by: jilles
Sponsored by: The FreeBSD Foundation
MFC after: 6 days
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/posix_spawn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/posix_spawn.c b/lib/libc/gen/posix_spawn.c index 673c760..c65a730 100644 --- a/lib/libc/gen/posix_spawn.c +++ b/lib/libc/gen/posix_spawn.c @@ -123,13 +123,13 @@ process_spawnattr(const posix_spawnattr_t sa) * Use unwrapped syscall, libthr is in undefined state after vfork(). */ if (sa->sa_flags & POSIX_SPAWN_SETSIGMASK) { - __libc_sigprocmask(SIG_SETMASK, &sa->sa_sigmask, NULL); + __sys_sigprocmask(SIG_SETMASK, &sa->sa_sigmask, NULL); } if (sa->sa_flags & POSIX_SPAWN_SETSIGDEF) { for (i = 1; i <= _SIG_MAXSIG; i++) { if (sigismember(&sa->sa_sigdefault, i)) - if (__libc_sigaction(i, &sigact, NULL) != 0) + if (__sys_sigaction(i, &sigact, NULL) != 0) return (errno); } } |