From d6953d3f7d4753246e1aa1a36146fa22233af02b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 25 Jun 2012 05:00:39 +0000 Subject: [PATCH] * cygwait.h (cancelable_wait): Need to force time to negative to indicate relative time. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/cygwait.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 384171000..912d44f7f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2012-06-25 Christopher Faylor + + * cygwait.h (cancelable_wait): Need to force time to negative to + indicate relative time. + 2012-06-21 Corinna Vinschen * path.cc (realpath): Fix comment. diff --git a/winsup/cygwin/cygwait.h b/winsup/cygwin/cygwait.h index 9a49be7ff..6a004626e 100644 --- a/winsup/cygwin/cygwait.h +++ b/winsup/cygwin/cygwait.h @@ -38,7 +38,7 @@ cancelable_wait (HANDLE h, DWORD howlong, unsigned mask) pli_howlong = NULL; else { - li_howlong.QuadPart = 10000ULL * howlong; + li_howlong.QuadPart = -(10000ULL * howlong); pli_howlong = &li_howlong; } return cancelable_wait (h, pli_howlong, mask);