PollArrayWrapper.c

kirk.pepperdine at gmail.com kirk.pepperdine at gmail.com
Wed Mar 2 15:20:18 UTC 2016


Hi,

I was looking at PollArrayWrapper.c and I saw this.

#define RESTARTABLE(_cmd, _result) do { \
  do { \
    _result = _cmd; \
  } while((_result == -1) && (errno == EINTR)); \
} while(0)

Is there a reason why this logic is wrapped in a do { …. } while(0)

Regards,
Kirk



More information about the hotspot-dev mailing list