Dead Man Timer?

Will Stuyvesant hwlgw at hotmail.com
Sun Sep 1 16:47:46 EDT 2002


"Graham Ashton" <graham at effectif.com> wrote:
> > Need to detect a stalled process.
> > 
> There may be a better way, but you could try using signal.alarm() to set
> an alarm. Your process should be interrupted by a signal when it is
> received. If your write operation works you can cancel the alarm
> immediately.
> 
> This will probably work much better on *nix than on windows (for which
> there will be better alternatives, I'm sure).

I am interested in a Windows solution!  Anybody?

::

Who does not trust enough will not be trusted.
                -- Lao Tse



More information about the Python-list mailing list