Re: restarting signals

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Neal Becker
日付:  
To: Philip Hazel
CC: exim-users
題目: 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;
}