This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: How to file descriptors get inherited by exec'd processes?
- To: cygwin <cygwin at cygwin dot com>
- Subject: Re: How to file descriptors get inherited by exec'd processes?
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Thu, 1 Feb 2001 11:12:27 -0500
- References: <3A798A49.608C6495@delcomsys.com>
- Reply-To: cygwin at cygwin dot com
On Thu, Feb 01, 2001 at 11:09:45AM -0500, Patrick Doyle wrote:
>Could somebody please point me to the location in the source code where
>file descriptors get inhereted by an exec'd process. I see in
>"dcrt0.cc" where 'stdio_init()' is called, which sets up the fdtab for
>stdin, stdout, and stderr (only), but I can't seem to find where the
>rest of the opened file descriptors are inherited. I realize that this
>is a bit off topic for this particular list, but I know the folks who
>know the answer read this list.
They are inherited automatically in cygheap_fixup_in_child().
stdio_init() is only called when a cygwin process is invoked by a
non-cygwin process like a Windows command shell.
cgf
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple