signal.alarm() for less than one second?

Jarkko Torppa torppa at staff.megabaud.fi
Sat Jul 6 18:53:47 EDT 2002


In article <slrnaiehb9.5bc.ak at ak.silmarill.org>, Andrei Kulakov wrote:
> It looks like signal.alarm takes 1+ seconds as argument. I need
> something lower, like 0.5 second or so.

Usual way to do input timeouts on unix is to use select.

there is also setitimer syscall but it does not seem to be
wrapped into anything.

-- 
Jarkko Torppa, Elisa Internet



More information about the Python-list mailing list