[Python-Dev] Re: Signal-resistant code (was: Two random and nearly unrelated ideas)

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 05 Sep 2002 12:30:40 +1200 (NZST)


>     If the system automatically restarts a system call that is
>     interrupted by a signal, define `HAVE_RESTARTABLE_SYSCALLS'.
> Python might probably wrap calls when
> these are restartable, or transmit the error upwards for systems where calls
> are not restartable.

I think that macro means that you *don't* have to use a wrapper
to restart syscalls, because it happens automatically.
So if it's not defined it means you have to restart them
manually, not that they can't be restarted at all.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+