View Single Post
  #2 (permalink)  
Old 08-27-2004
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 813
I tried on Fedora Core 2 (2.6.7 kernel): the behavior follows the standard, i.e. signal masks are properly "inherited". See 6.6.2 Signal masks in David Butenhof's "Programming with POSIX Threads".

You'll find attached a modified version of $ICE_HOME/test/IceUtil/ctrlCHandle/Client.cpp: it will show you whether the CtrlCHandler blocks SIGHUP, SIGINT and SIGTERM for new threads or not.

Maybe it's a bug in your kernel? How did you determine that pthread_sigmask is broken on your OS?

Cheers,
Bernard
Attached Files
File Type: zip sigmask-test.zip (776 Bytes, 184 views)
Reply With Quote