diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2016-11-06 19:12:59 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2016-11-06 19:12:59 +0000 |
commit | 174c1a4b3e7ca128b5540d3419d42f4d056e96af (patch) | |
tree | 151e311abf616968a53c0a55f92ff696a38530d9 /sys/netmpls | |
parent | 03013a254d6a3b17136ae317d7c8498eeef1cd93 (diff) |
Rework the cleanup trap handling using the EXIT trap;
trap 'cleanup; goes; here' EXIT
trap exit HUP INT TERM ERR FOO BAR BAZ
This makes sure the cleanup is always done (unless we exec), and
preserves the exit code, such as SIGINT => 130.
Also trap less signals. Special signals are special.
tested and OK ajacoutot@
Diffstat (limited to 'sys/netmpls')
0 files changed, 0 insertions, 0 deletions