Fix crashes in itimers on Windows 9X.
src/w32proc.c (start_timer_thread): Pass a non-NULL pointer as last argument to CreateThread. This avoids segfaults on Windows 9X. Reported by oslsachem <oslsachem@gmail.com>.
This commit is contained in:
parent
89a9712915
commit
e2607667a1
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-02-13 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* w32proc.c (start_timer_thread): Pass a non-NULL pointer as last
|
||||
argument to CreateThread. This avoids segfaults on Windows 9X.
|
||||
Reported by oslsachem <oslsachem@gmail.com>.
|
||||
|
||||
2014-02-13 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Fix subspace record bug on HP-UX 10.20 (Bug#16717).
|
||||
|
|
|
@ -566,7 +566,7 @@ init_timers (void)
|
|||
static int
|
||||
start_timer_thread (int which)
|
||||
{
|
||||
DWORD exit_code;
|
||||
DWORD exit_code, tid;
|
||||
HANDLE th;
|
||||
struct itimer_data *itimer =
|
||||
(which == ITIMER_REAL) ? &real_itimer : &prof_itimer;
|
||||
|
@ -604,7 +604,7 @@ start_timer_thread (int which)
|
|||
the way of threads we start to wait for subprocesses. See also
|
||||
new_child below. */
|
||||
itimer->timer_thread = CreateThread (NULL, 64 * 1024, timer_loop,
|
||||
(void *)itimer, 0x00010000, NULL);
|
||||
(void *)itimer, 0x00010000, &tid);
|
||||
|
||||
if (!itimer->timer_thread)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue