posix: Call _exit in failure case for posix_spawn{p} (BZ#20178)
commit3e040a2d5f59c5494910bd6451b3dcb69221a047
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 30 May 2016 13:04:47 +0000 (30 10:04 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 30 May 2016 13:56:01 +0000 (30 10:56 -0300)
tree31709eb7994eba3d22802239b8b6c604aec003c3
parentc30c3f46a5f2e60639dab888c487397b579942e9
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.
ChangeLog
sysdeps/unix/sysv/linux/spawni.c