* autoload.cc (timeBeginPeriod): Autoload.
* dcrt0.cc (dll_crt0_1): Use timeBeginPeriod to set default resolution to 1 ms. * pinfo.cc (pinfo::thisproc): Set ppid for redirected _pinfo blocks too. (pinfo::init): Avoid using VirtualQuery. Just rely on the assumption that procinfo will be populated. * pinfo.h (_pinfo::ppid): Move into redirected block.
This commit is contained in:
@@ -50,6 +50,8 @@ public:
|
||||
constants in <sys/cygwin.h>. */
|
||||
DWORD process_state;
|
||||
|
||||
pid_t ppid; /* Parent process id. */
|
||||
|
||||
DWORD exitcode; /* set when process exits */
|
||||
|
||||
#define PINFO_REDIR_SIZE ((char *) &myself.procinfo->exitcode - (char *) myself.procinfo)
|
||||
@@ -57,9 +59,6 @@ public:
|
||||
/* > 0 if started by a cygwin process */
|
||||
DWORD cygstarted;
|
||||
|
||||
/* Parent process id. */
|
||||
pid_t ppid;
|
||||
|
||||
/* dwProcessId contains the processid used for sending signals. It
|
||||
will be reset in a child process when it is capable of receiving
|
||||
signals. */
|
||||
|
Reference in New Issue
Block a user