Forking and fsock

Forking and fsock

am 16.04.2008 01:16:07 von Kyle Browning

Is there a way I can get my fsock to stay open when the child process
exits?

Kyle

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Forking and fsock

am 16.04.2008 01:53:30 von Jason Knight

------=_Part_3709_21848331.1208303610559
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

You're trying to save an open socket connection that was gained by the
fork()'d process? I don't think that would be possible, since PHP closes
all the resources when the process ends. Unless there is some config option
to not do that.

Jason

On Tue, Apr 15, 2008 at 4:16 PM, Kyle Browning wrote:

> Is there a way I can get my fsock to stay open when the child process
> exits?
>
> Kyle
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

------=_Part_3709_21848331.1208303610559--

Re: Forking and fsock

am 16.04.2008 19:38:11 von parasane

On Tue, Apr 15, 2008 at 7:16 PM, Kyle Browning wrote:
> Is there a way I can get my fsock to stay open when the child process exits?
>
> Kyle

Kyle,

Are you trying to create a PHP daemon?

What do you mean by "child process".... is PHP launching a second
script to connect to itself via socket?

--

Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php