Skip to content

Instantly share code, notes, and snippets.

@thejohnfreeman
Created August 22, 2023 18:06
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 thejohnfreeman/3b206cabd4a4b57747917ee999c7481f to your computer and use it in GitHub Desktop.
Save thejohnfreeman/3b206cabd4a4b57747917ee999c7481f to your computer and use it in GitHub Desktop.
npm start &
# echo sleep 100 | bash &
pid=$!
gid=$(echo $(ps -o pgid= $pid))
ps -jH -$gid
kill -SIGKILL $pid
ps -jH -$gid
kill -SIGTERM -$gid
reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment