CVSROOT: /cvs Module name: src Changes by: [email protected] 2016/11/06 12:12:58
Modified files:
usr.sbin/syspatch: syspatch.sh
Log message:
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@
