Created
September 9, 2024 21:25
-
-
Save sparr/498479a91a1a317a47b035e16f1c328c to your computer and use it in GitHub Desktop.
Revisions
-
sparr created this gist
Sep 9, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/bin/bash # # This script launches two processes and exits when either of them exits ( do_thing_1 kill -s SIGHUP $$ ) & ( do_thing_2 kill -s SIGHUP $$ ) & # wait for one of the processes to exit and send a SIGHUP back to this shell sleep infinity