From 11b92ac20ce73a7f6b4ea8dfcbaf6fb9cd056059 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 6 Mar 2015 20:09:12 +0000 Subject: Bugfix: iopause must check for EOVERFLOW, not ERANGE --- src/libstddjb/iopause_ppoll.c | 2 +- src/libstddjb/iopause_select.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libstddjb/iopause_ppoll.c b/src/libstddjb/iopause_ppoll.c index b181d0a..78d157a 100644 --- a/src/libstddjb/iopause_ppoll.c +++ b/src/libstddjb/iopause_ppoll.c @@ -20,7 +20,7 @@ int iopause_ppoll (iopause_fd *x, unsigned int len, tain_t const *deadline, tain tain_sub(&delta, deadline, stamp) ; if (!timespec_from_tain_relative(&ts, &delta)) { - if (errno != ERANGE) return -1 ; + if (errno != EOVERFLOW) return -1 ; else deadline = 0 ; } } diff --git a/src/libstddjb/iopause_select.c b/src/libstddjb/iopause_select.c index a9c6529..3f11b22 100644 --- a/src/libstddjb/iopause_select.c +++ b/src/libstddjb/iopause_select.c @@ -23,7 +23,7 @@ int iopause_select (iopause_fd *x, unsigned int len, tain_t const *deadline, tai tain_sub(&delta, deadline, stamp) ; if (!timeval_from_tain_relative(&tv, &delta)) { - if (errno != ERANGE) return -1 ; + if (errno != EOVERFLOW) return -1 ; else deadline = 0 ; } } -- cgit v1.2.3