Skip to content

Handling EINTR – Interrupted System Call

June 4, 2015

Recently bump into problem on where calling function epoll_wait() return a negative value. Further parsing the errno with function strerror(errno) gives: Interrupted System Call.

A simple digging finding a few suggestion on implementing a while loop with calling epoll_wait() function again. Feeling un-easy about the solution as well as wanted to understand more about the error, I search again and found this wonderful article explaining it EINTR, with an example that is easy to understand.

EINTR

Advertisements

From → Embedded Linux, Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: