Skip to content

Instantly share code, notes, and snippets.

@Lesmiscore
Created February 24, 2022 15:31
Show Gist options
  • Save Lesmiscore/2dd50b78d7bdf534015a0db7da3ffb6a to your computer and use it in GitHub Desktop.
Save Lesmiscore/2dd50b78d7bdf534015a0db7da3ffb6a to your computer and use it in GitHub Desktop.
script to close FDs using gdb
( for I in {5..30} ; do echo call '(int)' close'('$I')' ; done ; echo detach ) | sudo gdb -p 425335 -x -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment