Skip to content

Instantly share code, notes, and snippets.

@ramn
Last active January 3, 2016 18:09
Show Gist options
  • Save ramn/8499987 to your computer and use it in GitHub Desktop.
Save ramn/8499987 to your computer and use it in GitHub Desktop.
Close FD of another process
gdb -batch -ex 'call close(3)' -p <PID> # closes file descriptor 3 for process with <PID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment