comp: forward signals instead of exiting
authorJean Privat <jean@pryen.org>
Fri, 20 Mar 2015 01:55:58 +0000 (08:55 +0700)
committerJean Privat <jean@pryen.org>
Sat, 21 Mar 2015 03:13:39 +0000 (10:13 +0700)
commite86f4a3e26da3579e6f0a3e6aab66d33d70975aa
tree113e993c060df215927125b86c83e18d16931714
parent8fef9bbcfac77d97cdcbc289b45f1b3e888df413
comp: forward signals instead of exiting

Exit status of process distinguishes normal termination `WIFEXITED`
and signal-caused termination `WIFSIGNALED`.
Shells and other commands use this information to handle sub-commands.

Therefore, compiled programs should not, by default, terminate
their signal handler by an `exit` but should rethrow the original signal.

Signed-off-by: Jean Privat <jean@pryen.org>
src/compiler/abstract_compiler.nit