The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Who sent the process SIGCHLD ? Puntino UNIX for Dummies Questions & Answers 1 06-06-2008 01:43 PM
adv reqd on SIGCHLD on accept call stevenjagan High Level Programming 5 07-28-2006 04:24 AM
When is SIGCHLD is raised. supersumanth High Level Programming 4 10-21-2005 09:45 AM
signal handler for SIGCHLD jens High Level Programming 3 07-02-2005 09:05 AM
Need help with SIGCHLD Unlimited Sky High Level Programming 1 02-21-2005 11:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-06-2008
Registered User
 

Join Date: Apr 2008
Posts: 30
About SIGCHLD

When the SIGCHLD is sent?
SIGCHLD is sent either a child exits spontaneously (e.g. exit(0)) or it is killed ?
thank you in advance
Reply With Quote
Forum Sponsor
  #2  
Old 05-06-2008
Registered User
 

Join Date: Feb 2008
Location: New Zealand
Posts: 44
On POSIX-compliant platforms, SIGCHLD is the signal sent by computer programs when a child process terminates. The symbolic constant for SIGCHLD is defined in the header file signal.h. Symbolic signal names are used because signal numbers can vary across platforms.

cheers
gnom
Reply With Quote
  #3  
Old 05-06-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
A process must install a signal handler to receive the signal at all. By default, the signal is not sent. If the signal is being caught, it will be delivered whenever a child process changes status. By "status" we mean any of the status values returned by wait(). This includes a process that has exited due to explicitly calling exit() or being killed by the kernel. It also includes processes that stop or continue. This latter behavior is used by job control shells and by debuggers.
Reply With Quote
  #4  
Old 05-07-2008
Registered User
 

Join Date: Apr 2008
Posts: 30
Thank you both
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0