Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: can't set tty pgrp
- X-seq: zsh-workers 42688
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: can't set tty pgrp
- Date: Thu, 19 Apr 2018 09:51:39 -0400
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VT+2+svFSIGzOs49Z4JZ7WbNt+1V02qYdtazDLXXrG8=; b=PLrED00TEW9M7Nru/cH/5A3w9Ou5gJgINWp5foQwFTf/8cB9UZhAISy8JadWMcXjII 5aHwNxTozYy3pU5cckWom5OadxHI8bvl0xKiGpo9hVrgqpakX6lh1d6NMYg+j6qSIFgi laH3XOxkNmlyhq3tB+/JvG4PP2yJG3aG1Ip6hPttEW0CWyG3ZU3uladj37fgVARThGSQ 4T3LdodSVvttRHIEMhN+YEkvgjgqW4zv88AimSR5uQEEO4DqOCHUJVAK3U3uF040pXuL FeKK7Igt8FJi0fUcMDPMSL+gbvZRgDFhupegeXBqSm9XwAjn8KXbmZoC3WHG0Pa21O1I z4Ag==
- In-reply-to: <20180419123339.3f897060@camnpupstephen.cam.scsc.local>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20180419105813epcas5p4a20cf461f81c58b8a89ad6350c8c9942@epcas5p4.samsung.com> <CACeGjnXJbtyDH4127rM71ptWYgcAUVX9git6SW3hzV1_4S6JNA@mail.gmail.com> <20180419123339.3f897060@camnpupstephen.cam.scsc.local>
- Sender: ethersoft@xxxxxxxxx
Seems to work. Thanks. I think this is serious enough to merit a 5.5.2
release. Thoughts?
- Vin
On Thu, Apr 19, 2018 at 7:33 AM, Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:
> On Thu, 19 Apr 2018 06:57:40 -0400
> Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx> wrote:
> > The process group changes seem to have broken something:
> >
> >
> > : ~ Thu 19 6:52; vi
> > ^Z
> > zsh: suspended vi
> > : ~ Thu 19 6:52; fg
> > [1] + continued vi
> > zsh: can't set tty pgrp: no such process
>
> Yep, I remember thinking about this and forgetting to do anything...
>
> The following looks like it ought to be safe.
>
> diff --git a/Src/signals.c b/Src/signals.c
> index 2a6aa3f..6e12158 100644
> --- a/Src/signals.c
> +++ b/Src/signals.c
> @@ -537,7 +537,8 @@ wait_for_processes(void)
> #else
> update_process(pn, status);
> #endif
> - if (pn->pid == jn->gleader) {
> + if (WIFEXITED(status) &&
> + pn->pid == jn->gleader) {
> jn->gleader = 0;
> if (!(jn->stat & STAT_NOSTTY)) {
> /*
>
>
> pws
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author