Skip to content

Instantly share code, notes, and snippets.

@aglasgall
Created July 30, 2009 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aglasgall/158941 to your computer and use it in GitHub Desktop.
Save aglasgall/158941 to your computer and use it in GitHub Desktop.
if RUBY_PLATFORM =~ /linux/
PR_SET_DEATHSIG = 1
if RUBY_PLATFORM =~ /_64/
NR_PRCTL = 157
else
NR_PRCTL = 172
end
SIGTERM = 15
syscall NR_PRCTL, PR_SET_DEATHSIG, SIGTERM
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment