From: stephen.talley@Central.Sun.COM (Steve Talley)
To: zsh-users@math.gatech.edu
Cc: stephen.talley@Central.Sun.COM
Subject: Re: Exiting zsh with jobs in background
Date: Tue, 25 Mar 1997 23:10:01 -0700 [thread overview]
Message-ID: <199703260610.XAA02758@ipecac.Central.Sun.COM> (raw)
> st> Is there any way to turn off the "zsh: you have running jobs."
> st> message that appears when you try to exit zsh with jobs in the
> st> background? I have the "nohup" option set so that zsh won't kill
> st> those jobs, but I'd like to be able to exit the shell without
> st> being nagged about running jobs.
>
> Hrv> There is no way to turn it off. I once posted a patch that made
> Hrv> zsh behave like bash in that respect (i.e. not to warn about
> Hrv> running job when nohup is set), but it was rejected.
>
> On the small number of occasions I actually i) log out, and ii) have
> jobs running, and hence get the warning, I just disown them.
I don't need to disown them at this point -- since I have nohup set I just hit
Ctrl-D again and the shell exits. The problem is that I want to avoid the
message if I can. Having nohup set should allow me to do this...
>
> If I was really keen, maybe I'd have done something in .zlogout to
> disown all my running jobs.
>
By the time .zlogout gets sourced it is too late to disown the jobs. You could
put a function in precmd that disowns jobs immediately, but then you lose job
control. Clearly a "nowarn" option is needed for zsh.
Steve
~~
stephen.talley@Central.Sun.COM
next reply other threads:[~1997-03-26 6:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-26 6:10 Steve Talley [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-03-24 16:48 Steve Talley
1997-03-25 23:21 ` Hrvoje Niksic
1997-03-26 3:36 ` Andrew J Cosgriff
1997-03-26 3:44 ` Hrvoje Niksic
1997-03-26 4:01 ` Aaron Schrab
1997-03-26 4:07 ` Hrvoje Niksic
1997-03-26 10:20 ` Juergen Christoffel
1997-03-26 17:42 ` Zefram
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=199703260610.XAA02758@ipecac.Central.Sun.COM \
--to=stephen.talley@central.sun.com \
--cc=zsh-users@math.gatech.edu \
/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).