Date: Mon, 07 May 2007 16:20:45 -0700 From: Philippe Troin <ptroin@buzzlogic.com> To: freebsd-bugs@freebsd.org Subject: SIGPROF and SIGVTALRM are not delivered to multi-threaded programs Message-ID: <1178580045.5372.4.camel@mica.fifi.org>
next in thread | raw e-mail | index | archive | help
--=-7RzG/DqDYRwKG1/DaB3v Content-Type: text/plain Content-Transfer-Encoding: 7bit [I'm not subscribed to freebsd-bugs, please CC me on any replies] See attached program. Compile with: gcc -Wall -Wextra -o itimer-test itimer-test.c -lpthread Run without threads: ./itimer-test See that SIGPROF is delivered every few milliseconds. Run with threads: ./itimer-test 1 SIGPROF is never delivered, either to the main thread or the other thread. Note that changing to ITIMER_VIRTUAL/SIGVTALARM does not work either. ITIMER_REAL/SIGALRM seems to work though. Phil. --=-7RzG/DqDYRwKG1/DaB3v--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1178580045.5372.4.camel>