mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
posix: Call _exit in failure case for posix_spawn{p} (BZ#20178)
This patch call _exit instead of exit in failure case for the spawned child in Linux posix_spawn{p} implementation. Tested on x86_64. [BZ #20178] * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit on failure instead of exit.
This commit is contained in:
parent
c30c3f46a5
commit
3e040a2d5f
@ -1,3 +1,9 @@
|
||||
2016-05-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||
|
||||
[BZ #20178]
|
||||
* sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
|
||||
on failure instead of exit.
|
||||
|
||||
2016-05-30 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
[BZ #3629]
|
||||
|
@ -288,7 +288,7 @@ fail:
|
||||
if (ret)
|
||||
while (write_not_cancel (p, &ret, sizeof ret) < 0)
|
||||
continue;
|
||||
exit (SPAWN_ERROR);
|
||||
_exit (SPAWN_ERROR);
|
||||
}
|
||||
|
||||
/* Spawn a new process executing PATH with the attributes describes in *ATTRP.
|
||||
|
Loading…
Reference in New Issue
Block a user