diff options
author | 2016-11-06 19:12:58 +0000 | |
---|---|---|
committer | 2016-11-06 19:12:58 +0000 | |
commit | a5e8cfb70878db362e6940766185a624e410c729 (patch) | |
tree | ab0ae06a25a49f62698556d51f7749b8f27aa1f4 /sys/netinet/tcp_input.c | |
parent | some cleanup; (diff) | |
download | wireguard-openbsd-a5e8cfb70878db362e6940766185a624e410c729.tar.xz wireguard-openbsd-a5e8cfb70878db362e6940766185a624e410c729.zip |
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/netinet/tcp_input.c')
0 files changed, 0 insertions, 0 deletions