delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/02/19:53:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Jeff Hu" <max AT huville DOT com>
To: <cygwin AT sources DOT redhat DOT com>
Subject: RE: Starting Programms in the background
Date: Thu, 2 Nov 2000 19:46:36 -0500
Message-ID: <LMBBKGINDNGEAHNCKNNEEEJICLAA.max@huville.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <20001102152012.A14935@redhat.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal

I think this is related to how bash is started. If you:

1) start a dos box window
2) start bash
3) start notepad in the background
4) exit bash
5) exit the dos prompt window

the dos box remains until you exit notepad.

Jeff
-----Original Message-----
From: cygwin-owner AT sources DOT redhat DOT com
[mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Christopher Faylor
Sent: Thursday, November 02, 2000 3:20 PM
To: cygwin AT sources DOT redhat DOT com
Subject: Re: Starting Programms in the background

On Thu, Nov 02, 2000 at 11:58:01AM -0800, Earnie Boyd wrote:
>--- Christopher Faylor <cgf AT redhat DOT com> wrote:
>> On Thu, Nov 02, 2000 at 06:10:07AM +0100, klaus DOT berndl AT sdm DOT de wrote:
>> >If i start a program in the background from bash (e.g.  "winword.exe
>> ><document> &") then all is working fine.  But if i try to exit from the
>> >bash-shell from which i have started the program before i have finished
>> >the program then bash writes "logout" but doesn?t terminate until i
>> >terminate all previous started programs.
>> >
>> >How can this be avoided, means how to exit bash regardless of any still
>> >running background programs?
>>
>> The only time this should happen is when you are using CYGWIN=tty.  In
this
>> case, the main process (bash) "owns" the tty and can't exit until every
>> child which is using the tty has exited.  The only way around this is to
>> not use CYGWIN=tty.
>>
>
>Then it's broken.  I assume notty is still the default, correct?  Then the
>window refuses to close until I exit the process.  This is with
1.1.6(0.29/3/2)
>build.

Feel free to debug it.  This exits for me on Windows NT.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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