LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-09-2005, 10:35 PM   #1
ckamheng
Member
 
Registered: Apr 2003
Location: Malaysia
Distribution: Slackware 10.2
Posts: 75

Rep: Reputation: 15
Sigchld


Dear expert,

why kernel keeps on sending SIGCHLD to my program???
Anything wrong with it?

i am using 2.4 kernel, i wonder will the kernel sends SIGCHLD to my process when exiting a thread since thread is treated as child process in 2.4 kernel??
 
Old 10-09-2005, 11:11 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Refer to any book on Unix/Linux system programming, or look here:
http://www.linuxjournal.com/article/2335
... or ...
http://www.win.tue.nl/~aeb/linux/lk/lk-5.html

It sounds like:
a) You've done fork()/exec() (or something similar) to create a child process, and
b) The child process has exited (either normally or abnormally), but
c) You haven't called wait(), or haven't set a signal handler for SIGCHLD (if only "signal (SIG_IGN)" for SIGCHLD).
 
  


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
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:38 AM.

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