From: Dan Jacobson <jidanni@jidanni.org>
Subject: Re: compile kills background jobs undocumentedly
Date: Mon, 22 Dec 2003 05:19:59 +0800 [thread overview]
Message-ID: <87brq1g96o.fsf@jidanni.org> (raw)
In-Reply-To: <87adc0lfnp.fsf@jidanni.org> (Dan Jacobson's message of "Mon, 30 Jun 2003 05:47:38 +0800")
Geez, the pains one must go to in a shell script run by the compile
command, to avoid any background jobs getting terminated when we reach
the bottom.
#didn't work:
sleep 3&&beep& #("beep" could be any command.)
sleep 3&&beep&disown
(sleep 3&&beep)&
(sleep 3&&beep)&disown
nohup sh -c 'sleep 3&&beep'&
#worked:
echo 'sleep 3&&beep'|nohup sh&
nohup sh -c 'sleep 3&&beep&'
echo 'sleep 3&&beep&'|nohup sh
nohup sh<<!
sh <<!! &
sleep 3&&beep
!!
!
nohup sh<<!
sleep 3&&beep&
!
OK, I suppose it is a nice place to practice making scripts hangup immune.
Dan> OK, but at least explain what you are doing in C-h f compile, and Info.
next prev parent reply other threads:[~2003-12-21 21:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-29 21:47 compile kills background jobs undocumentedly Dan Jacobson
2003-12-21 21:19 ` Dan Jacobson [this message]
2004-01-29 4:45 ` Dan Jacobson
2004-01-30 23:28 ` Kevin Rodgers
2004-02-01 23:48 ` Dan Jacobson
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87brq1g96o.fsf@jidanni.org \
--to=jidanni@jidanni.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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).