CARB_RETRY_EINTR

Defined in carb/Defines.h

CARB_RETRY_EINTR(op)

A macro to retry operations if they return -1 and errno is set to EINTR.

Warning

The op expression is potentially evaluated multiple times.

Parameters
  • op – The operation to retry

Returns

The return value of op while guaranteeing that errno is not EINTR.