Still in my POE early days, but see if I understand this correctly....

Richard Liu wrote:
I need to be able to start a child POE process that stays alive even when it has no events to keep it alive. The POE::Kernel man page
indicates that if I set an alias for the child, it will demonise itself
and stay alive. However when I try this with the following code ,
process with ID =5 still dies.

Why is this so?

You are only setting one session alias, so while that session *would* stay open if it were possible further events could be directed at it, there is nothing to direct events at it since no other session is still alive, so it knows implicitly that it will never receive any work, and can quit. How about something like, if session ID is 5 or 6...then see if they continue, (though deadlock can seemingly occur).

http://danconia.org

		 if ($session->ID == 5 ) {
		  print "Settin alias for ", $session->ID, "\n";
		  $kernel->alias_set('five');
		 }


Reply via email to