# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1169800584 0 # Node ID 5b7720054d45b236310cd6e26fa1cb16f0c0c607 # Parent 205d5c1af24502ed84556267bb96ef1c729969e0 (SIGNAL_THREAD_CHECK): Use pthread_equal. diff -r 205d5c1af245 -r 5b7720054d45 src/syssignal.h --- a/src/syssignal.h Fri Jan 26 08:36:18 2007 +0000 +++ b/src/syssignal.h Fri Jan 26 08:36:24 2007 +0000 @@ -210,7 +210,7 @@ #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) \