Skip to content

Instantly share code, notes, and snippets.

@knollet
Created August 13, 2024 10:09
Show Gist options
  • Save knollet/5f998531fd1aca46db8d39503c680b73 to your computer and use it in GitHub Desktop.
Save knollet/5f998531fd1aca46db8d39503c680b73 to your computer and use it in GitHub Desktop.
bash TMOUT
## 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