How to tell if a forked process is done?

Klaus Alexander Seistrup spam at magnetic-ink.dk
Thu Sep 25 02:21:39 EDT 2003


Christos TZOTZIOY Georgiou wrote:

> Thus "your next spawn" seems not relevant.

I beg to differ.  By "your next spawn" I'm not talking about spawning
from the current process.  It could be a job on a nother terminal, a
cron job etc.

>> killing blindly is bad programming practice.
>
> Yes, it is; I have used kill(pid,0) in the past, aware that it's a
> quick and dirty solution.  Semaphores are much more safe in such a
> situation.

I fully agree.


  // Klaus

-- 
 ><> 	unselfish actions pay back better




More information about the Python-list mailing list