diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-19 02:39:40 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-28 17:12:22 +0800 |
commit | 983085923ae1d45196868b48f576b1a19e03e72b (patch) | |
tree | d51241ab8c84dfb3624ebda54a9bffa66655636d /src/funcs/dirs | |
parent | main: Only set savestatus in exitcmd (diff) | |
download | dash-983085923ae1d45196868b48f576b1a19e03e72b.tar.gz dash-983085923ae1d45196868b48f576b1a19e03e72b.zip |
mkinit: Split reset into exitreset and reset
Previously reset was called after exitshell. This was changed so that it was called before exitshell because certain state needed to be reset in order for the EXIT trap to work. However, this caused issues because certain other states (such as local variables) should not be reset. This patch fixes this by creating a new function exitreset that is called prior to exitshell and moving reset back to its original location. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions