]> git.eshelyaron.com Git - emacs.git/commitdiff
(SIGNAL_THREAD_CHECK): Use pthread_equal.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 26 Jan 2007 08:36:34 +0000 (08:36 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 26 Jan 2007 08:36:34 +0000 (08:36 +0000)
src/ChangeLog
src/syssignal.h

index 80d9d85eff766f3f455dd9fc126a918c08a3998f..3bf6763f6b7717119d6267495d219b89e83ff50f 100644 (file)
@@ -1,3 +1,14 @@
+2007-01-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
+       BLOCK_INPUT/UNBLOCK_INPUT.
+
+       * blockinput.h (interrupt_input_blocked): Declare volatile.
+
+       * keyboard.c (interrupt_input_blocked): Declare volatile.
+
+       * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
+
 2007-01-24  Kim F. Storm  <storm@cua.dk>
 
        * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
index a4e3fcb3e1b729f0a45c7019202b57ca1f2a3a23..36292670bc6f69b8b609e3528a37d842885d6f6d 100644 (file)
@@ -210,7 +210,7 @@ char *strsignal ();
 #ifdef HAVE_GTK_AND_PTHREAD
 #define SIGNAL_THREAD_CHECK(signo)                                      \
   do {                                                                  \
-    if (pthread_self () != main_thread)                                 \
+    if (!pthread_equal (pthread_self (), main_thread))                 \
       {                                                                 \
         /* POSIX says any thread can receive the signal.  On GNU/Linux  \
            that is not true, but for other systems (FreeBSD at least)   \