Mail Archives: cygwin-developers/1998/04/08/14:00:21
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 -