Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: DIY ZSH
- X-seq: zsh-users 19998
- From: lilydjwg <lilydjwg@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: DIY ZSH
- Date: Fri, 13 Mar 2015 12:15:30 +0800
- Disposition-notification-to: lilydjwg@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to :disposition-notification-to:user-agent; bh=GMceGe6zfPl0bqqEiY8nfY8EICBIm4bb++o0mGT3JYI=; b=Jwi/tNgB4tkh6NRSMJCl2saLrZlHU+x4RKpftu5I8paSCCmQJZTyzPyj3HTs7o0b8i OeTA+McPjUFtnwY3OmkMO4KSFvHv2jEP8H9WfNU/vfAbP9ATMmZPlQ9UhEYAhmYbAB5u C1KcZOG9vk6W7M3s9JgLqc4vzJ1t57oIvMz5Hx1jorJJRBO8t4FGueL2Y08hMe/Xz+we oOgEdC2lQgBddudjxZ73rld3SVo0JWXnrpjQCuCejYl89Zb3IKErciKU+IK6Vpqh5nc/ 073SMZiDPBhPS/Szc2002nKbOzFPTy+noEQXUu2qSz6MPE//BTHW2r7W9C8ajtUNFlN2 x7cQ==
- In-reply-to: <150312205900.ZM16348@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA45AD97A4A092davidrayninfocouk@80.91.229.13> <20150312090743.GA23300@lilyforest> <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author