delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/22/17:54:10

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: Tue, 22 Jul 2003 17:53:46 -0400
From: Steve Coleman <steve DOT coleman AT jhuapl DOT edu>
Subject: Re: subprocess i/o interaction with shell (bash&cmd): shells compete
for input with user program!
In-reply-to: <ulluqmh01.fsf@gnu.org>
To: sds AT gnu DOT org
Cc: cygwin AT cygwin DOT com
Message-id: <3F1DB26A.7090405@jhuapl.edu>
MIME-version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)
Gecko/20030624
X-Accept-Language: en-us, en
References: <uadb68wgz DOT fsf AT gnu DOT org> <20030722145702 DOT GA17342 AT redhat DOT com>
<uvftu7cp5 DOT fsf AT gnu DOT org> <20030722172316 DOT GC17916 AT redhat DOT com>
<ulluqmh01 DOT fsf AT gnu DOT org>

Sam Steingold wrote:

>I am not using fork().
>just plain exec().
>  
>
If thats the case then the exec() you are linking is not behaving as a 
POSIX exec() call, because if it did you would not still have two 
processes to even compete for the I/O streams. The first process image 
would be "replaced" by the second.

% man execl

8< ---------
"The  exec family of functions replaces the current process image with a 
new process
 image."
-------------

So, either you are not using Cygwin execl(), or it is VERY broken, which 
I doubt because too many applications have been working correctly for 
too long for the second to be the case.





--
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/

- Raw text -


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