[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Non-UNIX Changes



   Date: Sun, 21 May 2000 17:32:15 +0100
   From: Adam Sampson <azz@gnu.org>

   I was just using it as an example, but I'll happily explain, because I think
   it's pretty neat:

   Suppose your app is doing

	   read(file, buf, length);

   and has read "count" bytes when it receives a signal. Under Unix, the signal
   handler is called, and once that's done, the read will return immediately
   with the EINTR error code.

Not on BSD.  BSD will restart the operation of interrupted by default.
There is also SA_RESTART.  Anyway, read the "Interrupted Primitives"
node in the GNU C Library reference manual.

Mark



Reply to: