delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/07/18:25:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 7 Mar 2003 18:25:02 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin/1.3.20-1 bash child process disassociation behavior weirdness
Message-ID: <20030307232502.GA562@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <03e001c2e4f7$608d8e60$78d96f83 AT pomello> <Pine DOT GSO DOT 4 DOT 44 DOT 0303071816490 DOT 11568-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0303071816490.11568-100000@slinky.cs.nyu.edu>
User-Agent: Mutt/1.5.1i

On Fri, Mar 07, 2003 at 06:17:17PM -0500, Igor Pechtchanski wrote:
>On Fri, 7 Mar 2003, Max Bowsher wrote:
>> Christopher Faylor wrote:
>> > On Fri, Mar 07, 2003 AT 10:00:28PM -0000, Max Bowsher wrote:
>> >> Richard H. Broberg wrote:
>> >>> In non-cygwin unix I'm familiar with being able to do the following
>> >>> in a shell (bash or other):
>> >>>
>> >>> $ nohup long-running-command &
>> >>> $ exit
>> >>>
>> >>> and be able to leave it running.
>> >>>
>> >>> However, under cygwin (this has been true for AT least back to
>> >>> cygwin/1.3.6 for me), when I start a process in the background and
>> >>> try to exit
>> >>> my bash shell, it hangs until the child process completes (almost as
>> >>> if it's doing a wait() on its children).
>> >>>
>> >>> Additionally, if I start a command nohup in the background in 1 bash
>> >>> shell and close the window, it kills the child process.
>> >>
>> >> An unfortunate consequence of how Windows handles console windows.
>> >
>> > This works for me:
>> >
>> > nohup sleep 30 </dev/null >foo 2>&1&
>> >
>> > at least with the latest version of cygwin...
>>
>> Doesn't work for me, running self-built cvs HEAD cygwin dll.
>>
>> By doesn't work, I mean:
>> I copy-paste the exact command above
>> I Ctrl-D
>> Bash exits, but the comsole window remains for 30 seconds.
>
>Could be a CYGWIN=tty issue...

I tried it both ways.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019