zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: problem with 'ls | less' shell function
Date: Fri, 21 Oct 2022 14:45:09 +0900	[thread overview]
Message-ID: <B1FBED5D-68AA-4297-99FE-0D03C795F45F@kba.biglobe.ne.jp> (raw)
In-Reply-To: <Y0+0olfiaDplISd7@localhost>


> 2022/10/19 17:26, zsugabubus@national.shitposting.agency wrote:
> 
> 15bf8ace168a86d0fae90b10e9f706baddd4c0bf is the first bad commit
> 50134: Tweak process group handling to prevent unkillable pipelines

This is for solving the problem that pipelines like the following
can't be interrupted by ^C:

zsh% { /bin/sleep 10 ; /bin/sleep 11; echo done 1; } |
 { /bin/sleep 12 ; /bin/sleep 13; echo done 2; }

After the commit ^C works. But if we suspend/resume it by ^Z/fg,
the pipeline never finishes. We get the output 'done 2', but
not 'done 1', nor the next prompt (^C works). After we get 'done 2',
if we run 'ps -Oppid,pgid,tpgid' in another terminal:

    PID    PPID    PGID   TPGID S TTY          TIME COMMAND
   2447    ....    2447    3644 S pts/0    00:00:00 zsh
   3644    2447    3644    3644 R pts/0    00:00:37 zsh
   3645    3644    3644    3644 Z pts/0    00:00:00 [sleep] <defunct>

2447 is the main zsh, 3644 is the subshell for the left hand side
of the pipeline, and 3645 is 'sleep 10'.


  parent reply	other threads:[~2022-10-21  5:45 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-17  9:17 Thomas Klausner
2022-10-17 14:50 ` Mikael Magnusson
2022-10-17 15:36   ` Thomas Klausner
2022-10-19  8:26     ` zsugabubus
2022-10-19 10:04       ` Jun T
2022-10-19 13:36         ` Jun. T
2022-10-20  0:10       ` Bart Schaefer
2022-10-20 16:26         ` Peter Stephenson
2022-10-21  5:45       ` Jun T [this message]
2022-10-21  7:40         ` Jun T
2022-10-21 21:22           ` Bart Schaefer
2022-10-21 21:24             ` Bart Schaefer
2022-10-22 23:22               ` Bart Schaefer
2022-10-22 23:43                 ` Bart Schaefer
2022-11-03 23:10                   ` Bart Schaefer
2022-11-04  6:09                     ` [PATCH] " Bart Schaefer
2022-11-04 15:10                       ` [PATCH] " Jun T
2022-11-05  0:09                         ` Bart Schaefer
2022-11-06 19:12                           ` Bart Schaefer
2022-11-07  8:43                             ` Jun T
2022-11-07 19:33                               ` Bart Schaefer
2022-11-07 19:44                                 ` Roman Perepelitsa
2022-11-08  0:46                                   ` Bart Schaefer
2022-11-08  0:44                                 ` Bart Schaefer
2022-11-08  5:03                                   ` Bart Schaefer
2022-11-09  5:03                                     ` Bart Schaefer
2022-10-19  9:33 ` Jun T
2022-10-19 10:01   ` Jun T

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=B1FBED5D-68AA-4297-99FE-0D03C795F45F@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --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).