Scripts (running once)

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

mixo <mixo77 at> 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> - 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 Trygve Berglihn <olafb+usenet at>

More information about the Python-list mailing list