Re: restarting signals

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Neal Becker
CC: exim-users
Subject: Re: restarting signals
On Wed, 16 Oct 1996, Neal Becker wrote:

> A simple way is available to fix this. We can wrap all the needed
> syscalls. Define the wrapper in a header file that all source files
> include. Make these wrappers inline (where available) so performance
> will not be degraded.


> e.g.:
>
> inline int READ (a, b, c) {
>   int res;
>   do {
>     res = read (a, b, c);
>   } while (res < 0 && errno == EINTR);
>   return res;
> }


I'm afraid I don't understand. There are places in Exim where one wants
system calls to be interrupted, usually for timeouts.

I suppose I just don't know enough about Unix.


--
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714