]> granicus.if.org Git - python/commit
Added an example that uses signal.alarm() to time out an os.open() that
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 18 Aug 1998 19:38:54 +0000 (19:38 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 18 Aug 1998 19:38:54 +0000 (19:38 +0000)
commit42db27fedc6d1e1600eeb6fa68e7925890350255
treee353722c6db8464ac3f93f7ca6cad552baa5b777
parentce4ba897be5e4fc116f7cf805f38dec48cd5cfea
Added an example that uses signal.alarm() to time out an os.open() that
    takes too long. This example relies on the fact that raising an
    exception in a signal handler causes the exception to be re-raised
    when the main line of the program resumes execution.  Is this guaranteed
    in CPython, or is this something that just happens to work by accident?

Also fixed a typo.
Doc/lib/libsignal.tex