public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* {lp,cb}Reserved2 under Windows 7 and file descriptors
@ 2010-07-14 18:49 Daniel Colascione
  2010-07-14 19:16 ` Christopher Faylor
  0 siblings, 1 reply; 15+ messages in thread
From: Daniel Colascione @ 2010-07-14 18:49 UTC (permalink / raw)
  To: cygwin

Windows 7 WOW64 seems to DTRT with respect to copying the process data;
needs_count_in_si_lpres2 can be false except on Vista. I'm testing a cygwin
with that modification now and it works fine (persistent Windows 7 sporadic
issues notwithstanding; those seem to be solved by rebaseall).

lpReserved2 working properly leads to another idea: set *lpReserved2 to a
non-zero value even when needs_count_in_si_lpres2 is a false; specifically,
set it to three and pass the stdin, stdout, and stderr handles and flags via
child_info. (child_info would have to begin with the appropriate values.) At
the worst, it does no harm; but if the child is using the MS C runtime,
it'll pick up the stdin file descriptors and flags from this data area. If
the flags are set properly, you should be able to get the C runtime to
report _isatty() is true for cygwin ptys. (Though of course GetFileType will
still reveal the thing to be a socket.)


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-09-13 15:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-14 18:49 {lp,cb}Reserved2 under Windows 7 and file descriptors Daniel Colascione
2010-07-14 19:16 ` Christopher Faylor
2010-07-15  0:45   ` Daniel Colascione
2010-07-15  8:43     ` Corinna Vinschen
2010-07-15 11:25       ` Daniel Colascione
2010-07-15 11:58       ` Andy Koppe
2010-07-15 14:52         ` Christopher Faylor
2010-09-12 22:06     ` Andy Koppe
2010-09-12 22:10       ` Daniel Colascione
2010-09-12 22:19         ` Andy Koppe
2010-09-12 23:35       ` Christopher Faylor
2010-09-13  3:35         ` Daniel Colascione
2010-09-13  6:11           ` Christopher Faylor
2010-09-13  8:51             ` Andy Koppe
2010-09-13 15:37               ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).