LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2006, 04:16 PM   #1
gregmb
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
Question SIGRT_1 not blocked in Posix Threads (NPTL)


I'm running multithreaded programs on RH Enterprise 4 update 3

I block all signals and handle any signals via sigwait() in the
main thread of my applications.

I'm new to Linux and have typically been running my apps under Solaris 9 on
sparc machines so I'm not quite up to speed on how Linux handles
pthreads with NPTL.

I've discovered that my threads are being interrupted by
SIGRT_1 signals, there maybe others.
(this doesn't happen on Solaris)

for example I block all signals via

sigset_t blockmask;
sigfillset( &blockmask );
pthread_sigmask(SIG_BLOCK,&blockmask,NULL);

This doesn't seem to block the SIGRT_1 signals

Can anyone tell me

1. What are these SIGRT_1 for?
I've have heard these are used to signal thread exits,
but all my threads are detached and persistent.

2. How do I block them, or should I?

3. If I must live with them does this mean I must
programmatically reschedule
any system calls that might be interrupted? (EINTR)
(I sure hope not)


Thanks
Greg
 
Old 02-27-2019, 08:32 PM   #2
steph_hodgetts_is
LQ Newbie
 
Registered: Feb 2019
Posts: 1

Rep: Reputation: Disabled
I have this same issue

This is an extremely old thread (13 years), but the questions listed are exactly what I would like to know the answers too.
Can anyone answer this post?
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX threads - pthread_cond_timedwait iklinux Programming 5 09-26-2005 10:33 AM
Slackware and Native POSIX Thread Library (NPTL) win32sux Slackware 19 05-17-2005 10:41 AM
About POSIX threads Ephracis Programming 1 12-03-2004 06:33 AM
Signal Handling in Threads[POSIX] anoop_cv Programming 1 11-02-2004 02:00 AM
I have a problem with POSIX Threads. AndreasA Programming 2 08-11-2003 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration