Re: restarting signals

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Neal Becker
Fecha:  
A: Philip Hazel
Cc: exim-users
Asunto: Re: restarting signals
Well, it's not pretty, but if all signal handlers recorded the last
signal in a global variable then we could do:

inline int READ (a, b, c) {
  int res;
  do {
    res = read (a, b, c);
  } while (res < 0 && (LastSignalWasUSR1 && errno == EINTR));
  return res;
}