From: lilydjwg <lilydjwg@gmail.com>
To: zsh-users@zsh.org
Subject: Re: DIY ZSH
Date: Fri, 13 Mar 2015 12:15:30 +0800 [thread overview]
Message-ID: <20150313041530.GA21939@lilyforest> (raw)
In-Reply-To: <150312205900.ZM16348@torch.brasslantern.com>
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
prev parent reply other threads:[~2015-03-13 4:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 21:22 zzapper
2015-03-11 23:15 ` toki clover
2015-03-12 8:31 ` Axel Beckert
2015-03-12 18:46 ` ZyX
2015-03-12 19:01 ` Axel Beckert
2015-03-12 21:03 ` ZyX
2015-03-12 9:07 ` lilydjwg
2015-03-12 21:51 ` zzapper
2015-03-13 3:59 ` Bart Schaefer
2015-03-13 4:15 ` lilydjwg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150313041530.GA21939@lilyforest \
--to=lilydjwg@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).