-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The fd>2 is a neat idea, but what if this tool listened for SIGHUP to detect the intention to terminate? This is conveniently produced by a closed stdin, so this straightforward commandline would return immediately:
morehup sleep 10 < /dev/null
Just asking because I looked into the topic a bit recently and your utility does seem like a missing standard tool. I found this kind of shim take a few forms in the wild, but they all seem to either wait for end of input, or SIGHUP which are usually equivalent.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels