zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: PATCH: job control debug
Date: Thu, 6 Sep 2018 09:09:02 +0100	[thread overview]
Message-ID: <20180906080904eucas1p19f72cce1b58ef4ef5018423ebbc18ac5~RwSxuRG2t1347013470eucas1p1M@eucas1p1.samsung.com> (raw)
In-Reply-To: <20180905210740.5a6aec15@pws-HP.localdomain>

On Wed, 5 Sep 2018 21:07:40 +0100
Peter Stephenson <p.w.stephenson@ntlworld.com> 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

  reply	other threads:[~2018-09-06  8:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180905200816epcas5p18ce6c49baa637e7d83a769e97c4364fb@epcas5p1.samsung.com>
2018-09-05 20:07 ` Peter Stephenson
2018-09-06  8:09   ` Peter Stephenson [this message]
     [not found]   ` <20180906090902.1f344e9f@camnpupstephen.cam.scsc.local>
2018-09-06  9:22     ` Peter Stephenson
2018-09-07  3:18       ` Bart Schaefer
2018-09-07  9:18         ` Peter Stephenson
     [not found]         ` <20180907101852.62415ff9@camnpupstephen.cam.scsc.local>
2018-09-07 11:21           ` Peter Stephenson
     [not found]           ` <20180907122145.2af5bcba@camnpupstephen.cam.scsc.local>
2018-09-07 14:01             ` PATCH: Rimmerworld pipeline race Peter Stephenson
     [not found]             ` <20180907150140.46a05880@camnpupstephen.cam.scsc.local>
2018-09-07 14:58               ` Peter Stephenson
2018-09-07 16:46                 ` Peter Stephenson
2018-09-07 23:40                   ` Bart Schaefer
2018-09-08 17:37                     ` Peter Stephenson
2018-09-08 18:40                       ` Peter Stephenson
2018-09-10 22:55                 ` Axel Beckert
2018-09-11  8:58                   ` Peter Stephenson
2018-09-11 14:40                     ` Vincent Lefevre
2018-09-11 15:03                       ` Peter Stephenson
     [not found]                       ` <20180911160326.33dfd575@camnpupstephen.cam.scsc.local>
2018-09-11 15:32                         ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='20180906080904eucas1p19f72cce1b58ef4ef5018423ebbc18ac5~RwSxuRG2t1347013470eucas1p1M@eucas1p1.samsung.com' \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).