Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: can't set tty pgrp
- X-seq: zsh-workers 42686
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>, Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: can't set tty pgrp
- Date: Thu, 19 Apr 2018 12:33:39 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180419113343euoutp021b31526e604bb3acb61f1f12cdbee76d~m0xfi9zDg1329213292euoutp02E
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524137623; bh=St0mQ9yRFwLlggPCD+gUi5qM4RMz9QGlgmown/isapc=; h=Date:From:To:Subject:In-reply-to:References:From; b=R+8CnXyTqSTe067l3QlRvB2u2LPnb9ydM0d4s2K/U4YupwyBHmEh13LRpaV4GKNSg UYnlCTLLxruhorP8kxOH+riREl9HctPv2otlXBUA9nCL9BIQcjPwCJ2+/8Kk1lPAFG Gd+5x5KoafkIg1OZzGnnwk/ElRE0h3nI1jb8z6r8=
- In-reply-to: <CACeGjnXJbtyDH4127rM71ptWYgcAUVX9git6SW3hzV1_4S6JNA@mail.gmail.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>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180419105813epcas5p4a20cf461f81c58b8a89ad6350c8c9942@epcas5p4.samsung.com> <CACeGjnXJbtyDH4127rM71ptWYgcAUVX9git6SW3hzV1_4S6JNA@mail.gmail.com>
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