projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c97f0d9
)
posix_spawn: honor POSIX_SPAWN_SETSIGDEF flag
author
Rich Felker
<dalias@aerifal.cx>
Sat, 28 May 2011 22:39:43 +0000
(18:39 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 28 May 2011 22:39:43 +0000
(18:39 -0400)
src/process/posix_spawn.c
patch
|
blob
|
history
diff --git
a/src/process/posix_spawn.c
b/src/process/posix_spawn.c
index e718cee30c2af9b4d3e0d8527f2bcff868ed4662..7018c37ef6e6a6bfb391f2f1c3b26004625a4544 100644
(file)
--- a/
src/process/posix_spawn.c
+++ b/
src/process/posix_spawn.c
@@
-31,7
+31,9
@@
int __posix_spawnx(pid_t *res, const char *path,
for (i=1; i<=64; i++) {
struct sigaction sa;
sigaction(i, 0, &sa);
- if (sa.sa_handler!=SIG_IGN || sigismember(&attr->__def, i)) {
+ if (sa.sa_handler!=SIG_IGN ||
+ ((attr->__flags & POSIX_SPAWN_SETSIGDEF)
+ && sigismember(&attr->__def, i) )) {
sa.sa_handler = SIG_DFL;
sigaction(i, &sa, 0);
}