zsh-users
 help / color / mirror / code / Atom feed
From: Chris Johnson <cjohnson@cs.utk.edu>
To: zsh-users@sunsite.dk
Subject: Re: nohup/disown and logout
Date: Mon, 7 Feb 2005 09:26:03 -0500	[thread overview]
Message-ID: <20050207142603.GA15548@namib.cs.utk.edu> (raw)
In-Reply-To: <20050207082506.GB11544@vandal.simcon-mt.de>

Andrei A. Voropaev sent me the following 1.1K:

> > If I run a command like "nohup myprog &|", the job doesn't appear in the
> > jobs table, as expected, but when I exit the shell, .zlogout is executed
> > and everything hangs.  No control key combinations seem to do anything.
> > Killing the nohup'ed process from another shell releases the original
> > shell and it exits.  I get no message.  I've tried with disown also, but
> > the same behavior is exhibited.  If it makes any difference, I
> > experience this problem when logged in remotely to a university machine.
> > It seems to work all right locally on my own machine.
> > 
> > Any ideas?  Any further information I can provide?  Many thanks!
> 
> Are you using ssh to login?

I see...  The ssh session hangs because there's still a connection to
std(in|out|err).  If I redirect all these away to /dev/null or
elsewhere, the session closes as expected and the process continues to
run:

    nohup myprog &> /dev/null < /dev/null &!

Thanks for the tipoff!

-- 
Chris Johnson
cjohnson@cs.utk.edu
http://www.cs.utk.edu/~cjohnson


      reply	other threads:[~2005-02-07 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-07  4:18 Chris Johnson
2005-02-07  8:25 ` Andrei A. Voropaev
2005-02-07 14:26   ` Chris Johnson [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=20050207142603.GA15548@namib.cs.utk.edu \
    --to=cjohnson@cs.utk.edu \
    --cc=zsh-users@sunsite.dk \
    /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).