zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <dominik.vogt@gmx.de>
To: Zsh Users <zsh-users@zsh.org>
Subject: kill % fails?
Date: Fri, 26 Nov 2021 19:20:54 +0100	[thread overview]
Message-ID: <YaElhducf14tgEIU@gmx.de> (raw)

Why does this not kill all processes?

 $ killall xeyes
 $ pstree | grep xeyes
 # no xeyes running
 $ for i in $(seq 1000); do xeyes & sleep 0.01; kill %; done
 zsh: job table full
 [2]    terminated  xeyes
 [3]    terminated  xeyes
 ...
 [996]    terminated  xeyes
 [997]  - terminated  xeyes
 $ pstree | grep xeyes
        |                          `-xeyes(28266)     <----- not killed?
 $ killall xeyes
 $ pstree | grep xeyes
 [998]  + terminated  xeyes

Okay, I understand that bit about the full job table, but why is
the last process not killed?

Note: The 0.01 second sleep is just long enough so that xeyes
tries to create a window on my system.

Warning: If not running fvwm as a window manager, you wm may well
go crazy, crash or become busy for a long time.  Better save your
work first.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt


             reply	other threads:[~2021-11-26 18:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 18:20 Dominik Vogt [this message]
2021-11-27 20:28 ` Bart Schaefer
2021-11-28  1:31   ` Dominik Vogt
2021-11-28  2:15     ` Bart Schaefer
2021-11-28  9:49       ` Dominik Vogt
2021-11-28 20:10         ` Bart Schaefer

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=YaElhducf14tgEIU@gmx.de \
    --to=dominik.vogt@gmx.de \
    --cc=zsh-users@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).