Scripts (running once)

Olaf Trygve Berglihn olafb+usenet at pvv.org
Mon Jun 25 11:04:08 EDT 2001


mixo <mixo77 at usa.net> writes:
 
> If you send a hangup signal, for instance, 'killall -HUP python'
> (not the best way to do things) the lockfile won't be removed. How
> then , would you cater for system signals or system crash?


Check my <dn1d77swt9s.fsf at bacchus.pvv.ntnu.no> - a followup on Carsten
Gablers post. Not totally bulletproof, so it might be an idea to check
PID _and_ command (with args) in the process table. Unless you have
overlapping command names and arguments, that should work better.

Olaf
-- 
Olaf Trygve Berglihn <olafb+usenet at pvv.org>



More information about the Python-list mailing list