On 02/02/2020 16:48, Mike Frysinger wrote:
i had need of a nohup-like program, but for a different signal.
i ended up writing a util called "nosig" that allows full control
over signal settings before execing another program:
https://vapier.github.io/nosig/
https://vapier.github.io/nosig/man.html
i figure expanding nohup won't work well since its behavior is
specified by POSIX. better to have a new tool.
is there interest in merging into coreutils ? i'd be fine redoing
the code style/idioms to align with the project, but didn't want to
spend time on it if people weren't amenable to the idea :).
-mike
The latest release of env (v8.31) supports this with:
env now supports '--default-signal[=SIG]', '--ignore-signal[=SIG]', and
'--block-signal[=SIG], to setup signal handling before executing a program.
env now supports '--list-signal-handling' to indicate non-default
signal handling before executing a program.
cheers,
Pádraig