zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: vogt@linux.vnet.ibm.com, Zsh Users <zsh-users@zsh.org>
Subject: Re: Really detaching jobs
Date: Fri, 2 Oct 2015 08:08:18 -0700	[thread overview]
Message-ID: <CAH+w=7ZzJBK2rqdyFRXYn1Q175TVWsT_FLDnn-KedoLB-cyNWQ@mail.gmail.com> (raw)
In-Reply-To: <20151002143824.GA5942@linux.vnet.ibm.com>

On Fri, Oct 2, 2015 at 7:38 AM, Dominik Vogt <vogt@linux.vnet.ibm.com> wrote:
>
>
> Yeah, but if I had known *in advance* that I'd have the problem,
> I'd just have used nohup.  So the question is really how to detach
> a running process group from the controlling terminal, and whether
> zsh can help with that in any way (which I guess it cannot).
>

Chances are that the reason the process dies is because sshd has
closed the standard output (the terminal) so it gets a write error.
The only reliable way to detach something is to redirect its outputs
(and inputs), which nohup does.  Once the process is running, there's
(generally) no external way to change those file descriptors, the
shell can't do anything after the fact.

The advantage of something like "screen" is that if you ALWAYS use it,
you can stop worrying about knowing in advance.


  reply	other threads:[~2015-10-02 15:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-02 11:56 Dominik Vogt
2015-10-02 12:43 ` Jun T.
2015-10-02 14:38   ` Dominik Vogt
2015-10-02 15:08     ` Bart Schaefer [this message]
2015-10-02 17:15     ` covici
2015-10-02 18:45     ` Mikael Magnusson
2015-10-05  6:52       ` Dominik Vogt

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='CAH+w=7ZzJBK2rqdyFRXYn1Q175TVWsT_FLDnn-KedoLB-cyNWQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=vogt@linux.vnet.ibm.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).