It might be due to "The use of the sigprocmask() function is
unspecified in a multi-threaded process."
http://www.opengroup.org/onlinepubs/9699919799/functions/pthread_sigmask.html

I do not have kfreebsd box handy now.
Kibi, please, does it work with pthread_sigmask() instead of sigprocmask() ?

It indeed seems to work fine. Please find attached the new patch.

IMHO, yet better would be patch below, some library might use some other signal internally, you really want to only block SIGWINCH.

Petr


--- a/src/main.cc
+++ b/src/main.cc
@@ -535,7 +535,7 @@ int main(int argc, char *argv[])

     sigaddset(&mask, SIGWINCH);

-    sigprocmask(SIG_SETMASK, &mask, NULL);
+    pthread_sigmask(SIG_BLOCK, &mask, NULL);
   }

   srandom(time(0));



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to