Macro base::handle_eintr_errno
source · macro_rules! handle_eintr_errno { ($x:expr) => { ... }; }
Expand description
Macro that retries the given expression every time its result indicates it was interrupted.
It is intended to use with system functions that signal error by returning -1
and setting
errno
to appropriate error code (EINTR
, EINVAL
, etc.)
Most of standard non-reentrant libc functions use this way of signalling errors.