Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: job control debug
- X-seq: zsh-workers 43395
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: job control debug
- Date: Thu, 6 Sep 2018 09:09:02 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180906080906euoutp02eb77df0be5e03659716e437076daeeb6~RwSzKHGtj1071810718euoutp02Z
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536221346; bh=w5KSYmklwu7Z47R8pFJhcf672mGT8Y2tlH+5BQuDxws=; h=Date:From:To:Subject:In-Reply-To:References:From; b=S0FFEsVy/LxCjQ6V1o+7k8L+P+Typ0IwrquW8t1pmcKHl3h8zATTQZFUlqgXNPfUB G0MmMjCfTMnnAipYx4MhxRZ6SEtzmPmvH7jlDM/aixUBe22bvEWyO28liQfSVeuz4C Anq6jfTKR/6VuNJr6lqi5vU+VT+3d1lBjKJ56W/s=
- In-reply-to: <20180905210740.5a6aec15@pws-HP.localdomain>
- 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: <CGME20180905200816epcas5p18ce6c49baa637e7d83a769e97c4364fb@epcas5p1.samsung.com> <20180905210740.5a6aec15@pws-HP.localdomain>
On Wed, 5 Sep 2018 21:07:40 +0100
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> This should help debug Rimmerworld pipeline problems.
> +/* Uncomment to debug problems with job control */
> +/*#define DEBUG_JOB_CONTROL*/
> +
> +#ifdef DEBUG_JOB_CONTROL
> +#define ATTACHTTY(pgrp, index) attachtty(pgpr, index)
^^
Sorry, small typo.
I won't check this in since there seems to be at least one (other)
oddity as you'll see from the loctaion indexes below.
Here's the output of working and non-working cases: nothing glaring
stands out, and indeed there's no key difference between the
attachtty() calls.
Working:
camnpupstephen% echo foo | { sleep 0.01 | more }
attachtty(7233728): pgrp = 10503, mypgrp = 10503
set_gleader(10): 1 = 0
set_gleader(3): 1 = 10511
attachtty(3): pgrp = 10511, mypgrp = 10503
set_gleader(10): 1 = 0
attachtty(7233728): pgrp = 10503, mypgrp = 10503
set_gleader(10): 1 = 0
set_gleader(9): 1 = 10511
set_gleader(10): 2 = 0
set_gleader(10): 1 = 0
set_gleader(10): 2 = 0
set_gleader(9): 2 = 10512
set_gleader(10): 1 = 0
set_gleader(10): 2 = 0
set_gleader(9): 2 = 10512
set_gleader(11): 2 = 0
attachtty(14): pgrp = 10503, mypgrp = 10503
set_gleader(8): 2 = 0
attachtty(8): pgrp = 10503, mypgrp = 10503
set_gleader(8): 1 = 0
attachtty(4): pgrp = 10503, mypgrp = 10503
Non-working:
camnpupstephen% echo foo | { : | more }
attachtty(7233728): pgrp = 10503, mypgrp = 10503
set_gleader(10): 1 = 0
set_gleader(3): 1 = 10514
attachtty(3): pgrp = 10514, mypgrp = 10503
set_gleader(10): 1 = 0
attachtty(7233728): pgrp = 10503, mypgrp = 10503
set_gleader(10): 1 = 0
set_gleader(9): 1 = 10514
set_gleader(10): 2 = 0
set_gleader(10): 1 = 0
set_gleader(10): 2 = 0
set_gleader(9): 2 = 10515
set_gleader(10): 1 = 0
zsh: done echo foo |
zsh: suspended (tty output) { : | more; }
set_gleader(10): 2 = 0
set_gleader(9): 2 = 10515
set_gleader(11): 2 = 0
attachtty(14): pgrp = 10503, mypgrp = 10503
set_gleader(6): 2 = 10514
attachtty(4): pgrp = 10503, mypgrp = 10503
parent shell = 10503
more = 10516
I can also see another zsh job while this is suspended --- probably a
"superjob" or something like that.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author