From: Gabriel Corona Date: Thu, 19 Jun 2014 12:47:41 +0000 (+0200) Subject: [mc] pread_whole must restart in cas of EINTR, not EAGAIN X-Git-Tag: v3_12~956^2~1^2~19 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/31024f8e71fcc2168e3a9a0274d122b2525ccbce?ds=sidebyside [mc] pread_whole must restart in cas of EINTR, not EAGAIN This probably won't happen with this file anyway. --- diff --git a/src/mc/mc_page_snapshot.cpp b/src/mc/mc_page_snapshot.cpp index f2e227a965..833d70cf5b 100644 --- a/src/mc/mc_page_snapshot.cpp +++ b/src/mc/mc_page_snapshot.cpp @@ -67,9 +67,9 @@ static size_t pread_whole(int fd, void* buf, size_t count, off_t offset) { if (n==0) return res; - // Error (or EAGAIN): + // Error (or EINTR): if (n==-1) { - if (errno == EAGAIN) + if (errno == EINTR) continue; else return -1;