Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
unshare: Add --kill-child option #511
This allows to conveniently kill the entire process tree
The example added to the man page shows the most common use.
Thanks. I'm going to postpone this for the next release (v2.32) - it's too late for v2.31.
Maybe it would be nice to have an optional argument for the
where signame is SIGKILL by default. Note that with in misc-utils/kill.c we have table to convert name to signal number. The ideal solution would be to move (by another patch) the table and signame_to_signum() to lib/signames.c and use it in kill.c as well as in unshare.c.
@karelzak I've pushed some new commits, please let me know if that's how you had it in mind.