zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Problems with zsh's job control and running jobs
Date: Thu, 02 Sep 2010 08:53:50 -0700	[thread overview]
Message-ID: <100902085352.ZM12641@torch.brasslantern.com> (raw)
In-Reply-To: <20100902134747.GA30650@whistler.venod.com>

On Sep 2,  3:47pm, Haakon Riiser wrote:
}
} Is there a way to make zsh differentiate between running and
} suspended jobs?  That is, make it so that CHECK_JOBS only looks for
} suspended jobs, not running ones?

An answer to this is related to Greg Klanderman's reply on that other
old thread (which is on zsh-workers, so those reading only zsh-users
won't have seen it).

Disowning (&!) a job differs from merely backgrounding it in one
important respect, which is that the job becomes immune to SIGHUP
and will continue running after the shell exits.

Conversely, suspended jobs are always killed when the shell exits,
regardless of the state of NO_HUP.

So it *might* make sense for CHECK_JOBS to ignore running jobs if and
only if NO_HUP.  The question is whether the intention of CHECK_JOBS
is to warn you that you've left something unfinished, or to warn you
that something is going to be summarily terminated.

-- 


      parent reply	other threads:[~2010-09-02 15:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 13:47 Haakon Riiser
2010-09-02 14:30 ` Peter Stephenson
2010-09-02 14:37   ` Peter Stephenson
2010-09-02 15:04     ` Haakon Riiser
2010-09-02 15:58   ` Bart Schaefer
2010-09-04 18:03     ` John Eikenberry
2010-09-04 20:12       ` PJ Weisberg
2010-09-02 14:54 ` Greg Klanderman
2010-09-02 15:53 ` Bart Schaefer [this message]

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=100902085352.ZM12641@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).