Home » U++ Library support » U++ Core » Write an app to start and kill another app periodically
Re: Write an app to start and kill another app periodically [message #28579 is a reply to message #28577] |
Tue, 07 September 2010 22:07   |
|
jpderyck wrote on Tue, 07 September 2010 18:23 | another way I checked is to use the Kill() method of the LocalProcess but it runs only once, I mean if I do a Start() method again after a Kill(), the next Kill() method will do nothing ! I suppose the LocalProcess should be destroyed and renewed but how to do that?
|
Congratulations, you just found a bug I posted the fix in separate thread, so it gets some attention and gets into SVN faster.
As for the <defunct>: In other words, it is a zombie process. It is not really running, it just hangs there until it's parent (which is the controlling app in this case) is terminated. The cause of this is probably an imperfect design of the Detach() function. There is nothing bad about zombies ( sounds funny ), but if you want to the controlling app running continuously, there would be a lot of them and it's just not clean solution.
So for now, I would recommend you to stay with Start() and Kill() (after fixing it) if it works for you. There is probably many other solutions to your task, but I would need to know much more about your project to tell you something useful.
Honza
|
|
|
 |
|
Write an app to start and kill another app periodically
By: jpderyck on Thu, 29 April 2010 17:33
|
 |
|
Re: Write an app to start and kill another app periodically
By: koldo on Thu, 29 April 2010 17:51
|
 |
|
Re: Write an app to start and kill another app periodically
|
 |
|
Re: Write an app to start and kill another app periodically
By: jpderyck on Fri, 30 April 2010 10:32
|
 |
|
Re: Write an app to start and kill another app periodically
|
 |
|
Re: Write an app to start and kill another app periodically
By: jpderyck on Tue, 07 September 2010 15:16
|
 |
|
Re: Write an app to start and kill another app periodically
By: dolik.rce on Tue, 07 September 2010 15:55
|
 |
|
Re: Write an app to start and kill another app periodically
By: jpderyck on Tue, 07 September 2010 18:23
|
 |
|
Re: Write an app to start and kill another app periodically
By: dolik.rce on Tue, 07 September 2010 22:07
|
 |
|
Re: Write an app to start and kill another app periodically
|
 |
|
Re: Write an app to start and kill another app periodically
By: jpderyck on Wed, 08 September 2010 10:56
|
 |
|
Re: Write an app to start and kill another app periodically
By: jpderyck on Wed, 08 September 2010 10:36
|
 |
|
Re: Write an app to start and kill another app periodically
By: dolik.rce on Wed, 08 September 2010 11:25
|
 |
|
Re: Write an app to start and kill another app periodically
By: jpderyck on Wed, 08 September 2010 16:26
|
Goto Forum:
Current Time: Wed Jun 18 09:16:36 CEST 2025
Total time taken to generate the page: 0.05548 seconds
|