Unix Programming - SIGCHLD signal problem

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2005 > SIGCHLD signal problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SIGCHLD signal problem
niraj.kumar.ait@gmail.com

2005-06-29, 7:53 am

How can I ensure that my program generate SIGCHLD signal only in case
child process terminate .(not in case when child process stop). Is
there any other way to deal with this problem.


TIA
niraj

Michael Kerrisk

2005-06-29, 5:53 pm

On 29 Jun 2005 05:00:09 -0700, niraj.kumar.ait@gmail.com wrote:

>How can I ensure that my program generate SIGCHLD signal only in case
>child process terminate .(not in case when child process stop). Is
>there any other way to deal with this problem.



man sigaction

Look at SA_NOCLDSTOP.

Cheers,

Michael
niraj.kumar.ait@gmail.com

2005-06-30, 2:54 am

can i block stop signal(dont want to catch stop child process)
without using sigaction.

Actually i m using sigwait ,sigset_t

loic-dev@gmx.net

2005-06-30, 7:49 am

Hello Niraj,

> can i block stop signal(dont want to catch stop child process)
> without using sigaction.


SIGSTOP like SIGKILL can't be caught.

Cheers,
Loic.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com