Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Rolf Campbell <rcampbell@tropicnetworks.com>
Subject: Re: CVS head bash problem
Date: Tue, 22 Apr 2003 23:00:51 -0400
Lines: 73
Message-ID: <b84vjb$sqd$1@main.gmane.org>
References: <b84q3m$drl$1@main.gmane.org> <20030423015402.GB38081907@hpn5170x> <b84upp$qb5$1@main.gmane.org>
Reply-To: IDontLikePersonalReplies@hotmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@main.gmane.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
In-Reply-To: <b84upp$qb5$1@main.gmane.org>

Rolf Campbell wrote:
> Pierre A. Humblet wrote:
> 
>> On Tue, Apr 22, 2003 at 09:27:08PM -0400, Rolf Campbell wrote:
>>
>>> I've been using a cvs head cygwin1.dll that I compiled on Friday, and 
>>> I've noticed something a little strange.  Occationally, when I run a 
>>> bash command, bash runs it in the backgroud (and I didn't have a & at 
>>> the end).  And when the sub-process ends, sometimes bash continues to 
>>> run correctly, sometimes everything ends (rxvt window exits).
>>>
>>
>> This sounds a lot like
>> http://cygwin.com/ml/cygwin/2003-04/msg00286.html
>> What's your system?
>>
>> Pierre
>>
> Yes, I think that's the exact same problem that I'm having.  I'm running 
> Win2000.  So, it looks like bash is getting an EOF (sometimes) when the 
> program is run in the background.  You have your's set not to logout on ^D?
> 
> -Rolf

I just tried a simple test, created about 100 lines of text, all of them 
"cat hhhh".  Then copied them into the clipboard and pasted them into an 
NT shell running bash.  I've appended the important part of the output. 
  At the end of this, bash is dead (still shows up in ms-task manager, 
but doesn't respond to anything (including ^C).  I was able to reproduce 
this in rxvt as well but it took much longer, and ^C sort-of worked. 
After the ^C, I got back to a prompt, but then I tried to run "ps" and 
rxvt immediately exited.  I have been unable to reproduce using strace.

/home/rcampbell> cat hhhh
cat: hhhh: No such file or directory
/home/rcampbell> cat hhhh
cat: hhhh: No such file or directory
/home/rcampbell> cat hhhh
cat: hhhh: No such file or directory
/home/rcampbell> cat hhhh
cat: hhhh: No such file or directory
/home/rcampbell> cat hhhh
cat: hhhh: No such file or directory
/home/rcampbell> cat hhhh
/home/rcampbell> cat
cat: hhhh: No such file or directory
hhhh
hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh
cat hhhh



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

