KpyM Telnet/SSH Server - Forum
Job Termination |
Rob Lowe |
Job Termination |
Jul 04 2012 07:32 |
|
I've just realised that when a telenet/SSH session ends it tears down all the child processes that have been started during the session. Most of the children I'm happy to have killed, but sometimes a daemon process is started that I want to keep running.
It would be really helpful if when the Job is created the JOB_OBJECT_LIMIT_BREAKAWAY_OK flag was specified. Then downstream when I come to create the daemon I could specify CREATE_BREAKAWAY_FROM_JOB to allow it to continue running when the session ends. There should perhaps be an option to control it.
I'd be happy to submit some code to do this if it will be included in the next release.
Rob
|
Kroum Grigorov |
|
Jul 06 2012 19:44 |
|
Have a look at these posts
l0c41://www.kpym.com/phpbb/viewtopic.php?t=348
l0c41://www.kpym.com/blog/2005/10/ktshowto-start-application-that.html
l0c41://www.kpym.com/phpbb/viewtopic.php?t=71
Kroum
|
© 2007 - 2008 Kroum Grigorov