Commit e2607667 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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>.
parent 89a97129
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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment