Fix timeout's timeout on Windows
authorTamar Christina <tamar@zhox.com>
Mon, 19 Dec 2016 00:18:57 +0000 (00:18 +0000)
committerTamar Christina <tamar@zhox.com>
Mon, 19 Dec 2016 23:19:01 +0000 (23:19 +0000)
commit6263e1079a2d203fbd2e668ca99c0e901fcd1548
tree2f12003576fcc3d4ee482bbc17064d7c3a776481
parentf1dfce1cb2a823696d6d3a9ea41c2bc73d949f12
Fix timeout's timeout on Windows

Summary:
Timeout has been broken by my previous patch.
The timeout event was not being processed correctly,
as such hanging processes would not be killed as they should
have been.

This corrects it.

Test Plan:
./validate

~/ghc/testsuite/timeout/install-inplace/bin/timeout.exe 10 "sleep 10000s"

Reviewers: austin, RyanGlScott, bgamari

Reviewed By: bgamari

Subscribers: thomie, #ghc_windows_task_force

Differential Revision: https://phabricator.haskell.org/D2880

GHC Trac Issues: #13004
testsuite/timeout/WinCBindings.hsc