emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116435: Fix crashes in itimers on Windows 9X.


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r116435: Fix crashes in itimers on Windows 9X.
Date: Thu, 13 Feb 2014 20:54:55 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116435
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Thu 2014-02-13 22:54:07 +0200
message:
  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 <address@hidden>.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/w32proc.c                  w32proc.c-20091113204419-o5vbwnq5f7feedwu-814
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-02-13 17:23:08 +0000
+++ b/src/ChangeLog     2014-02-13 20:54:07 +0000
@@ -1,3 +1,9 @@
+2014-02-13  Eli Zaretskii  <address@hidden>
+
+       * w32proc.c (start_timer_thread): Pass a non-NULL pointer as last
+       argument to CreateThread.  This avoids segfaults on Windows 9X.
+       Reported by oslsachem <address@hidden>.
+
 2014-02-13  Paul Eggert  <address@hidden>
 
        Fix subspace record bug on HP-UX 10.20 (Bug#16717).

=== modified file 'src/w32proc.c'
--- a/src/w32proc.c     2014-01-01 07:43:34 +0000
+++ b/src/w32proc.c     2014-02-13 20:54:07 +0000
@@ -566,7 +566,7 @@
 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 @@
      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)
     {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]