www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/04/08/14:00:21

From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Question
8 Apr 1998 14:00:21 -0700 :
Message-ID: <01BD634F.AEEE7030.cygnus.cygwin32.developers@sos>
To: "'Ian Lance Taylor'" <ian AT cygnus DOT com>
Cc: "cygwin32-developers AT cygnus DOT com" <cygwin32-developers AT cygnus DOT com>

Ian Lance Taylor wrote:
>>    Should file descriptors other than stdin/stdout/stderr be inheritted 
on spawn()? >>It seems to me they shouldn't...
>
> Why not?
>
> I mean, I don't see any special reason why they should be inherited,
> but I also don't see any special reason why they shouldn't be
> inherited.  The operation seems well defined either way.
>

Yes. If fds>2 will not be inheritted on spawn, it will be easy to create 
pipelines with spawn calls. Look at pexecute.c in egcs sources for _WIN32 
but no __CYGWIN32__ case (mingw32?). I'm not sure that gcc will work 
properly if cpp will terminate due to some error (spawned ΣΣ1 will inherit 
last_pipe_input and will never receive EOF!). The compilation will just 
hangs...

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


- Raw text -


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