You are here: Re: Daemonising to continue asynchronously « PHP Programming Language « IT news, forums, messages
Re: Daemonising to continue asynchronously

Posted by Andy Jeffries on 04/24/06 21:50

On Mon, 24 Apr 2006 09:45:18 -0700, fletch wrote:
> Yup, children are killed when the server process dies. (try telling that
> to non programming folk.)

That and reaping zombies :-)

(and I always prefer to term is as children are killed when the parent
process dies - sounds more sinister :-))

> I don't think that you can do this from a
> request. I would either set it up properly as a daemon if I have access to
> the boot proceedure, or get cron to start it, making sure the script dies
> if there is already one instance running.
>
> I could be wrong about this, but I have looked into it before.

It's very odd. Daemonising from the command line works fine, it's just
when it's run from within an Apache request...

I may well have to do it by creating a full daemon process that is xinetd
monitored and just send requests through a socket. More hassle than I
wanted...

Cheers,


Andy


--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация