Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-27-2004
garry garry is offline
Registered User
 
 
Join Date: Aug 2004
Posts: 10
pthread_sigmask() on suse 9 amd64

i found that pthread_sigmask() on linux platforms doesn't set sigmask for threads created in that 'main' thread. probably calling sigprocmask() in CtrlCHandler constructor would be more correct, at least for linux.
Reply With Quote
  #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: 763
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
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failing tests; Ice 3.1.0 on SUSE Linux 10.1 pchapin Help Center 8 08-29-2006 07:52 AM
AMD64 java-1.5 xdm Help Center 1 05-31-2006 05:33 PM
Installing (or building) Ice on Suse 9.3 lancepw Help Center 6 09-22-2005 07:23 PM
Ice on AMD64 dkey Comments 1 03-01-2005 11:37 AM
misc build problems on Suse 8.1 marlowa Bug Reports 1 02-20-2003 11:51 AM


All times are GMT -4. The time now is 09:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.