Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: DIY ZSH



On Thu, Mar 12, 2015 at 08:59:00PM -0700, Bart Schaefer wrote:
> On Mar 12,  5:07pm, lilydjwg wrote:
> }
> } I've written a simple zsh module to call
> } 
> } prctl(PR_SET_CHILD_SUBREAPER, reaping);
> } 
> } so that orphaned subprocesses won't get adopted by farther processes
> } (e.g. init) when the shell is still there. It requires a recent Linux
> } kernel.
> 
> This might be of interest to the people who are using zsh with the
> Linux PID namespace feature.  Would you be interested in sharing?

Here it is: https://gist.github.com/lilydjwg/0bfa6807b88e6d39a995

I just copied from the example module and made it build. It adds
a "subreap" builtin, with an optional "-u" option to unset the flag.

-- 
Best regards,
lilydjwg



Messages sorted by: Reverse Date, Date, Thread, Author