Results 1 to 2 of 2

Thread: pthread_sigmask() on suse 9 amd64

  1. #1
    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.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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 Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Build ICE 3.2.1 with the oldschool Suse 9.3
    By hotlips in forum Help Center
    Replies: 1
    Last Post: 09-05-2007, 06:02 PM
  2. AMD64 java-1.5
    By xdm in forum Help Center
    Replies: 1
    Last Post: 05-31-2006, 05:33 PM
  3. Installing (or building) Ice on Suse 9.3
    By lancepw in forum Help Center
    Replies: 6
    Last Post: 09-22-2005, 07:23 PM
  4. Ice on AMD64
    By dkey in forum Comments
    Replies: 1
    Last Post: 03-01-2005, 11:37 AM
  5. misc build problems on Suse 8.1
    By marlowa in forum Bug Reports
    Replies: 1
    Last Post: 02-20-2003, 11:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •