commit | 551215bb2f05b6ed0a639e1a20b88906ddd7ef9b | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Mon Jun 06 19:52:43 2016 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Sep 02 22:10:56 2016 +0800 |
tree | fe196361b9b00c679d6c652a18d29f47eaf0f65c | |
parent | 17a5f24e0a8ec22f74399764db30d97ae310f3c6 [diff] |
trap: Implement POSIX.1-2008 trap reset behaviour Jonathan Perkin submitted a patch to fix the behaviour of trap when the first argument is an integer. Currently it is treated as a command while POSIX requires it to be treated as a signal. This patch is based on his idea but instead of adding an extra argument to decode_signal I have added a new decode_signum helper. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>