diff options
author | Christopher Faylor <me@cgf.cx> | 2013-12-18 17:44:20 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-12-18 17:44:20 +0000 |
commit | ccb3158c4f283a1d699a5d51da166dc73a3d0b74 (patch) | |
tree | c4421fea29f511405789d3216b79e37fb28de487 /winsup/cygwin | |
parent | 27c6e45ea3da26b2b95fb1d12971418b5367f0e2 (diff) | |
download | newlib-ccb3158c4f283a1d699a5d51da166dc73a3d0b74.zip newlib-ccb3158c4f283a1d699a5d51da166dc73a3d0b74.tar.gz newlib-ccb3158c4f283a1d699a5d51da166dc73a3d0b74.tar.bz2 |
* dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution.
* pinfo.cc (pinfo::init): Increase wait interval when waiting for procinfo to
stabilize.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 1 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 8 |
3 files changed, 11 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 11724c3..2c943ac 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> * autoload.cc (timeBeginPeriod): Delete. diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index d491fa6..d348d9b 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -836,7 +836,6 @@ dll_crt0_1 (void *) { extern void initial_setlocale (); - NtSetTimerResolution (10000, TRUE, NULL); _my_tls.incyg++; /* Inherit "parent" exec'ed process sigmask */ if (spawn_info && !in_forkee) diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index a22a9d7..f56d338 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -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 updated with a PID_EXECED state then we'll retry. */ if (!created && !(flag & PID_NEW)) - /* If not populated, wait 2 seconds for procinfo to become populated */ - for (int i = 0; i < 2000 && !procinfo->ppid; i++) - Sleep (1); + /* If not populated, wait 2 seconds for procinfo to become populated. + Would like to wait with finer granularity but that is not easily + doable. */ + for (int i = 0; i < 200 && !procinfo->ppid; i++) + Sleep (10); if (!created && createit && (procinfo->process_state & PID_REAPED)) { |