Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh scripts leave defunct processes when running under docker exec
- X-seq: zsh-workers 34529
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Zsh scripts leave defunct processes when running under docker exec
- Date: Fri, 13 Feb 2015 10:39:19 +0000
- Cc: zsh-workers@xxxxxxx, Soares Chen <soares.chen@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=x-sasl-enc:date:from:to:cc:subject :message-id:references:mime-version:content-type:in-reply-to; s= mesmtp; bh=l/tUAbC73hjxRJUpyXjasm32PjA=; b=cvXmv51jI10yDGs7e2Rnc 6fczazw0qe4Vgb2sBb/vqB35tLYj4wdC/WEwG6rZ+eps6yalKyWNQtWz1B6+IIj0 HIlJLrj19EunNw77Y3bv8T0MEua1OgLpN4k6258M5EcNlcI/UVwvTY2xx7IVXhHv wDTWaIBI5vsjqMN1hyHCHU=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:date:from:to:cc:subject :message-id:references:mime-version:content-type:in-reply-to; s= smtpout; bh=l/tUAbC73hjxRJUpyXjasm32PjA=; b=cZVBOTxP90ziTALZmVAq wfToITXLzqzg7hIILtM1JGi7SogoAD0EkFq72ivPq9zFDDouAwbkqBHx2i8dqWRd sxp9xuehhlegkw2FvB/A4IO9ARO4qHZVpWswyQdQ54rgbK2epeZv/ltjppJXfLq2 uSUX+ZxRKbqjqgnqQQKV55Y=
- In-reply-to: <150211081345.ZM17542@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CACUDQOE1y34_b_OF8g4kf7JJisyBc0T5Chr_E8xkZiyO_kTRGQ@mail.gmail.com> <CAH+w=7YBD6ocsd6+PL-AgpkDt4-O2AHPQa06U2=b7s2LfeORQw@mail.gmail.com> <20150211101130.2ac4d9b5@pwslap01u.europe.root.pri> <150211081345.ZM17542@torch.brasslantern.com>
Bart Schaefer wrote on Wed, Feb 11, 2015 at 08:13:45 -0800:
> On Feb 11, 10:11am, Peter Stephenson wrote:
> }
> } If that *is* it, is it just a case of special-casing PID 1 not to do
> } "fake" execs? That's not so hard and shouldn't be problematic in other
> } cases.
>
> That would help, but I don't think that's everything, because zsh would
> still not reap background grandchildren of children which exited first.
>
> In fact I don't even know how it *could* do that; we've reached the limit
> of my current knowledge of docker / PID namespaces.
Note that in the example, it is bash which runs as pid 1, not zsh. The zsh
process running the script and the interactive one spawned by 'docker exec'
have pid != 1.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author