You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a whole bunch of trap "$script" 0 1 2 3 15 callers, where $script is unintentionally invoked multiple times. Either the trap handler should be cleared, or the signal list should be trimmed to e.g. only 0, so that a SIGINT invocation won't be followed by a second for EXIT.
The text was updated successfully, but these errors were encountered:
trap is used in many places to cleanup on unexpected (e.g. SIGINT) or
expected script exit. Specifying 0 (EXIT) alongside other signals for
trap means that signal handlers can be invoked multiple times, e.g. once
for a SIGINT and again for subsequent EXIT. For cleanup we're really
only interested in the EXIT event, so remove all other signals.
Link: #196
Signed-off-by: David Disseldorp <ddiss@suse.de>
We have a whole bunch of
trap "$script" 0 1 2 3 15
callers, where$script
is unintentionally invoked multiple times. Either thetrap
handler should be cleared, or the signal list should be trimmed to e.g. only0
, so that aSIGINT
invocation won't be followed by a second forEXIT
.The text was updated successfully, but these errors were encountered: