Skip to content

Instantly share code, notes, and snippets.

@ikegami
Last active April 9, 2024 16:07
Show Gist options
  • Save ikegami/5012ec1d4e2a68e6727ca08202cc5d0c to your computer and use it in GitHub Desktop.
Save ikegami/5012ec1d4e2a68e6727ca08202cc5d0c to your computer and use it in GitHub Desktop.
$ ./a.sh
#1 Working...
#2 Working...
#3 Working...
#4 Working...
#5 Working...
^CSIGINT
$ ./a.sh & sleep 5; kill -INT %1
[1] 5963
#1 Working...
#2 Working...
#3 Working...
#4 Working...
#5 Working...
$ SIGINT
[1]+ Exit 130 ./a.sh
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment