Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9 from spiiroin/empty_wait_cancels
Allow canceling of iphb wakeups by iphb_wait() with zero wakeup range
  • Loading branch information
spiiroin committed Sep 23, 2014
2 parents ae3c772 + 61874d7 commit 0b34973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libiphb.c
Expand Up @@ -171,7 +171,7 @@ iphb_wait2(iphb_t iphbh, unsigned mintime, unsigned maxtime, int must_wait, int
struct _iphb_req_t req = {IPHB_WAIT};
struct _iphb_wait_resp_t resp = {0};

if (!iphbh || mintime > maxtime || maxtime == 0) {
if( !iphbh || mintime > maxtime ) {
errno = EINVAL;
return (time_t)-1;
}
Expand Down

0 comments on commit 0b34973

Please sign in to comment.