Re: signal handler to ignore kill of parent
| From: | Thomas Weber | Date: | Fri, 03 Jan 2003 15:31:04 +0000 |
| Subject: | Re: signal handler to ignore kill of parent | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130108@lists.php.net to get a copy of this message | ||
I am using the pcntl_ fork() from PHP. The problem with exec() is that i
need the variables and socket-descriptors from the parent.
Thomas 'Neo' Weber
---
thomas@youngarts.org
neo@gothic-chat.de
----- Original Message -----
From: "Michael J. Pawlowsky" <mikejp@videotron.ca>
To: "PHP-List" <php-general@lists.php.net>
Sent: Thursday, January 02, 2003 7:42 PM
Subject: Re: [PHP] signal handler to ignore kill of parent
>
> Actually let me try to be a bit more helpful... nut not much though :-)
>
> Did you write the code for the fork();
>
> Can you modify it? Read the fork, exec and clone man pages.
> This might help you a bit understand the behaviour.
>
> If so just call exec from the forked process... this will create a new
process instead of a child one.
> Then call exit() in your forked process.
>
> Mike
>
>
>
>
>
>
> *********** REPLY SEPARATOR ***********
>
> On 02/01/2003 at 7:05 PM Thomas Weber wrote:
>
> >Hi,
> >
> >i need some way for child-processes to ignore the kill of their parent.
Any
> >idea?
> >
> >Thanks,
> >Thomas 'Neo' Weber
> >---
> >thomas@youngarts.org
> >neo@gothic-chat.de
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>