Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/posix_timer.cc')
-rw-r--r--winsup/cygwin/posix_timer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/posix_timer.cc b/winsup/cygwin/posix_timer.cc
index d9d4a9a18..a140b00e9 100644
--- a/winsup/cygwin/posix_timer.cc
+++ b/winsup/cygwin/posix_timer.cc
@@ -287,9 +287,9 @@ timer_tracker::settime (int flags, const itimerspec *new_value,
if (old_value)
gettime (old_value, false);
+ cancel ();
if (!new_value->it_value.tv_sec && !new_value->it_value.tv_nsec)
{
- cancel ();
memset (&time_spec, 0, sizeof time_spec);
interval = 0;
exp_ts = 0;