mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
* dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution.
* pinfo.cc (pinfo::init): Increase wait interval when waiting for procinfo to stabilize.
This commit is contained in:
parent
27c6e45ea3
commit
ccb3158c4f
@ -1,3 +1,9 @@
|
|||||||
|
2013-12-18 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
|
* dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution.
|
||||||
|
* pinfo.cc (pinfo::init): Increase wait interval when waiting for
|
||||||
|
procinfo to stabilize.
|
||||||
|
|
||||||
2013-12-17 Christopher Faylor <me.cygwin2013@cgf.cx>
|
2013-12-17 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
* autoload.cc (timeBeginPeriod): Delete.
|
* autoload.cc (timeBeginPeriod): Delete.
|
||||||
|
@ -836,7 +836,6 @@ dll_crt0_1 (void *)
|
|||||||
{
|
{
|
||||||
extern void initial_setlocale ();
|
extern void initial_setlocale ();
|
||||||
|
|
||||||
NtSetTimerResolution (10000, TRUE, NULL);
|
|
||||||
_my_tls.incyg++;
|
_my_tls.incyg++;
|
||||||
/* Inherit "parent" exec'ed process sigmask */
|
/* Inherit "parent" exec'ed process sigmask */
|
||||||
if (spawn_info && !in_forkee)
|
if (spawn_info && !in_forkee)
|
||||||
|
@ -318,9 +318,11 @@ pinfo::init (pid_t n, DWORD flag, HANDLE h0)
|
|||||||
If the block has been allocated with PINFO_REDIR_SIZE but not yet
|
If the block has been allocated with PINFO_REDIR_SIZE but not yet
|
||||||
updated with a PID_EXECED state then we'll retry. */
|
updated with a PID_EXECED state then we'll retry. */
|
||||||
if (!created && !(flag & PID_NEW))
|
if (!created && !(flag & PID_NEW))
|
||||||
/* If not populated, wait 2 seconds for procinfo to become populated */
|
/* If not populated, wait 2 seconds for procinfo to become populated.
|
||||||
for (int i = 0; i < 2000 && !procinfo->ppid; i++)
|
Would like to wait with finer granularity but that is not easily
|
||||||
Sleep (1);
|
doable. */
|
||||||
|
for (int i = 0; i < 200 && !procinfo->ppid; i++)
|
||||||
|
Sleep (10);
|
||||||
|
|
||||||
if (!created && createit && (procinfo->process_state & PID_REAPED))
|
if (!created && createit && (procinfo->process_state & PID_REAPED))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user