mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
Call _exit(2) rather than exit(3) in forked child.
_exit(2) is async-signal-safe, whereas exit(3) is not.
This commit is contained in:
parent
07ee4c5ff4
commit
31db315f17
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ TEST_BEGIN(test_fork)
|
||||||
test_fail("Unexpected fork() failure");
|
test_fail("Unexpected fork() failure");
|
||||||
} else if (pid == 0) {
|
} else if (pid == 0) {
|
||||||
/* Child. */
|
/* Child. */
|
||||||
exit(0);
|
_exit(0);
|
||||||
} else {
|
} else {
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue