Created
August 13, 2024 10:09
-
-
Save knollet/5f998531fd1aca46db8d39503c680b73 to your computer and use it in GitHub Desktop.
bash TMOUT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## source this | |
## the DEBUG-trap seems to be executed AFTER the setting of the alarm, so this seems to help | |
function my_clear_alarm() { | |
trap true SIGALRM | |
} | |
trap my_clear_alarm DEBUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment