author | Alberto Bertogli
<albertogli@telpin.com.ar> 2005-04-23 23:35:56 UTC |
committer | Alberto Bertogli
<albertogli@telpin.com.ar> 2005-04-23 23:35:56 UTC |
parent | a6bd4eb6812cf609675125f3210fc81454ce1a6c |
libfilo.c | +3 | -1 |
diff --git a/libfilo.c b/libfilo.c index e9c30cd..f1d9347 100644 --- a/libfilo.c +++ b/libfilo.c @@ -355,7 +355,9 @@ static void wait_on(filock_t *fl, off_t start, off_t end, int mode) fl_unlock(fl); /* block until some other thread wakes us up */ - sem_wait(&(wr->sem)); + while (sem_wait(&(wr->sem)) != 0) + /* it can fail with EINTR, retry */ + ; free(wr); }