Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-12-2009, 02:07 PM   #1
LQ Newbie
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Process suicide upon thread death

Is there a way to get one thread to signal its parent (and preferably
other threads) that it's dying to a fault like SIGBUS or SIGSEGV? I'm
doing some software fault injections on a multi-threaded MPI program
and I'm finding that while the fault will kill a particular thread
PID, the rest of the application will continue on, even in a
compromised condition. I would much prefer that a dying thread
"broadcast" to other threads and/or parent that they need to exit too
so the entire application dies (and can be restarted). Before trying
to cobble together something, I thought I'd ask if there was a built
in mechanism.


Old 02-12-2009, 07:10 PM   #2
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
There is no a built-in mechanism for this AFAIK. You will have to change your code to pass the returning signal of dying processing to the parent, or keep some temp file to signal the health status of forked processes. Coding complexity will depend on your specific needs.


Last edited by servat78; 02-19-2009 at 11:23 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Get Process size and Thread count for a particular running process haseit Linux - Newbie 2 01-22-2009 11:09 PM
LXer: Linux kernel internals from Process Birth to Death LXer Syndicated Linux News 0 12-26-2008 11:03 PM
choice of process vs thread girish_hilage Programming 2 05-11-2007 03:45 AM
what advantage do kernel thread has over process? keiwu Linux - Newbie 3 03-04-2005 04:04 PM
Process and thread PIDs msriram_linux Programming 4 11-27-2004 11:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 AM.

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