summary refs log tree commit diff
path: root/src/machdep.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-06-06 19:52:43 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-09-02 22:10:56 +0800
commit551215bb2f05b6ed0a639e1a20b88906ddd7ef9b (patch)
treefe196361b9b00c679d6c652a18d29f47eaf0f65c /src/machdep.h
parenteval: Fix exit status when calling eval/dot with no commands (diff)
downloaddash-551215bb2f05b6ed0a639e1a20b88906ddd7ef9b.tar.gz
dash-551215bb2f05b6ed0a639e1a20b88906ddd7ef9b.zip
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>
Diffstat (limited to 'src/machdep.h')
0 files changed, 0 insertions, 0 deletions