* 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:
Christopher Faylor
2013-12-18 04:28:46 +00:00
parent 13621d2ef8
commit e9da9dfb94
5 changed files with 18 additions and 11 deletions

View File

@@ -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. */