Merge: No abort() on bad execvp
authorJean Privat <jean@pryen.org>
Wed, 7 Jan 2015 02:06:59 +0000 (21:06 -0500)
committerJean Privat <jean@pryen.org>
Wed, 7 Jan 2015 02:06:59 +0000 (21:06 -0500)
commitb2e11fdc3aead23b8392c86f3fcc7c7d405143cf
tree8a59396e0ee6214b05ee4b2d16c531abc30da09c
parent20d9b735181ebac74be5a95905077bc2079934b7
parenta6d72f47a40901a3903c099193a93c137415bd72
Merge: No abort() on bad execvp

When a bad command is passed to Process, the child-process will `C-abort()`, displaying frightening messages on the screen and causing confusion to the user.
Instead, just `_exit(127)` to terminate the child silently and let the parent do its things.

TODO better error management to not lose the error of the failed `execvp` system call.

Pull-Request: #1074
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>