Can fork be used in a signal handler?
- From: kiran <edu.mvk@xxxxxxxxx>
- Date: Fri, 28 Mar 2008 05:29:35 -0700 (PDT)
Hello group,
I have a problem that i have to create a new process, when my process
gets a SIGCHLD.
So i want to use fork inside the signal handler for SIGCHLD.
Can i use like that? I know that non-reentrant functions can not be
used inside a signal handler. Is fork() a reentrant function or not?
And in the signal handler i'm traversing a linked list which has the
complexity of O(n2). Is that ok if a signal handler to be that heavy?
Note: no global variables are being changed inside the handler.
Please assist me ASAP.
Thanks.
-Kiran.
.
- Follow-Ups:
- Re: Can fork be used in a signal handler?
- From: James Carlson
- Re: Can fork be used in a signal handler?
- From: Casper H . S . ***
- Re: Can fork be used in a signal handler?
- From: Rainer Weikusat
- Re: Can fork be used in a signal handler?
- Prev by Date: Process state information in winXP
- Next by Date: 64-bit c++ application crashing on solaris
- Previous by thread: Process state information in winXP
- Next by thread: Re: Can fork be used in a signal handler?
- Index(es):