diff options
-rw-r--r-- | lib/session.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/session.sh b/lib/session.sh index 834567c..05fecc4 100644 --- a/lib/session.sh +++ b/lib/session.sh @@ -90,7 +90,7 @@ session_begin() session_end() { - session_unset_sigs + trap : ${session_sigs} ${session_atexit} @@ -115,6 +115,8 @@ session_end() fi mutex_unlock "${session_root}/prokit/sessions.lock" + + trap - ${session_sigs} } session_id() @@ -203,11 +205,6 @@ session_set_sigs() done } -session_unset_sigs() -{ - trap - ${session_sigs} -} - session_handle_sig() { local sig="${1}" |