aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-01-26 08:36:34 +0000
committerYAMAMOTO Mitsuharu2007-01-26 08:36:34 +0000
commit3fb8b536ddb9f41273b336a5a78a2a9063a8f8b7 (patch)
treeb8caf99aa99a4acea1509e320985a1e9ab015fdf /src
parentcf2db1459f7b60659b2e0d52f292072c018660ec (diff)
downloademacs-3fb8b536ddb9f41273b336a5a78a2a9063a8f8b7.tar.gz
emacs-3fb8b536ddb9f41273b336a5a78a2a9063a8f8b7.zip
(SIGNAL_THREAD_CHECK): Use pthread_equal.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/syssignal.h2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 80d9d85eff7..3bf6763f6b7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
4 BLOCK_INPUT/UNBLOCK_INPUT.
5
6 * blockinput.h (interrupt_input_blocked): Declare volatile.
7
8 * keyboard.c (interrupt_input_blocked): Declare volatile.
9
10 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
11
12007-01-24 Kim F. Storm <storm@cua.dk> 122007-01-24 Kim F. Storm <storm@cua.dk>
2 13
3 * keymap.c (describe_map): Don't consider prefix keys to be shadowed. 14 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
diff --git a/src/syssignal.h b/src/syssignal.h
index a4e3fcb3e1b..36292670bc6 100644
--- a/src/syssignal.h
+++ b/src/syssignal.h
@@ -210,7 +210,7 @@ char *strsignal ();
210#ifdef HAVE_GTK_AND_PTHREAD 210#ifdef HAVE_GTK_AND_PTHREAD
211#define SIGNAL_THREAD_CHECK(signo) \ 211#define SIGNAL_THREAD_CHECK(signo) \
212 do { \ 212 do { \
213 if (pthread_self () != main_thread) \ 213 if (!pthread_equal (pthread_self (), main_thread)) \
214 { \ 214 { \
215 /* POSIX says any thread can receive the signal. On GNU/Linux \ 215 /* POSIX says any thread can receive the signal. On GNU/Linux \
216 that is not true, but for other systems (FreeBSD at least) \ 216 that is not true, but for other systems (FreeBSD at least) \