This is the mail archive of the
mailing list for the Cygwin project.
Re: Bug: C-prog from Win dies in fork; gdb.exe also won't run
Dave Korn wrote:
> Now, who supposes you could work around the restriction by writing
> * (WORD *) 0x004000dc = POSIX_CUI;
> just before calling NtSetInformation?
How are you going to fool the executive by poking around in the PE
header from userspace long after the process has initialized? The
executive fundamentally knows which subsystem any given process is
running in because it created it and manages the low level process
table. That's not to say that you couldn't install a kernel driver that
somehow munges bits of the executive's internal datastructures to allow
this, but sweet mother of sh*t do I not want to have the job of the
person responsible for maintaining *that*.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html