mq_receive EINTR

I’m new to QNX and want to know what the best way to handle getting the
EINTR from a mq_receive might be.

Any ideas would be great.

Thanks

Andy <andrews@digrec.com> wrote:

I’m new to QNX and want to know what the best way to handle getting the
EINTR from a mq_receive might be.

EINTR generally means you got hit by a signal while blocked, unblocked,
handled the signal in a signal handler, then continued.

The usual choice is to just retry.

But, unless you are getting/using signals this won’t usually happen.
(Or, your program will have exited due to the signal, and you won’t
see the EINTR error.)

-David

QNX Training Services
http://www.qnx.com/services/training/
Please followup in this newsgroup if you have further questions.