Skip to content

Instantly share code, notes, and snippets.

@mokrates
Created August 1, 2024 18:24
Show Gist options
  • Save mokrates/d18e273f88dac71b2bf9a78e72036c1d to your computer and use it in GitHub Desktop.
Save mokrates/d18e273f88dac71b2bf9a78e72036c1d to your computer and use it in GitHub Desktop.
How to circumvent readonly TMOUT
#!/bin/bash
# TMOUT is implemented using SIGALRM, so blocking it stops bash from terminating itself.
/usr/bin/env --block-signal=SIGALRM bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment