diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-10-01 14:53:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-10-14 20:27:12 -0400 |
commit | b7bc966522d73e1dc420b5ee6fc7a2e78099a08c (patch) | |
tree | 56b9e575aba31d4d44f626c942641badb2dccefe /src/complex/ctanhf.c | |
parent | 25ea9f712c30c32957de493d4711ee39d0bbb024 (diff) | |
download | musl-b7bc966522d73e1dc420b5ee6fc7a2e78099a08c.tar.gz musl-b7bc966522d73e1dc420b5ee6fc7a2e78099a08c.tar.bz2 musl-b7bc966522d73e1dc420b5ee6fc7a2e78099a08c.tar.xz musl-b7bc966522d73e1dc420b5ee6fc7a2e78099a08c.zip |
fix posix_spawn interaction with fork and abort by taking lock
this change prevents the child created concurrently with abort from
seeing the SIGABRT disposition change from SIG_IGN to SIG_DFL (other
changes are not visible anyway) and prevents leaking the write end of
the child pipe to children created by fork in another thread, which
may block return of posix_spawn indefinitely if the forked child does
not exit or exec.
along with other changes, this suggests that __abort_lock should
perhaps eventually be renamed to reflect that it's becoming a broader
lock on related "process lifetime" state.
Diffstat (limited to 'src/complex/ctanhf.c')
0 files changed, 0 insertions, 0 deletions