Ticket #1599 (closed bug: fixed)
testsuite timeout doesn't kill subprocesses on Windows
| Reported by: | simonmar | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8 branch |
| Component: | Test Suite | Version: | 6.6.1 |
| Keywords: | Cc: | ||
| Operating System: | Windows | Architecture: | x86 |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The timeout program doesn't kill subprocesses on Windows, which means for example that if GHCi hangs, timeout only kills ghc-inplace and not the GHC binary itself. The hung GHC process prevents the build tree from being removed, and stops future buildbots from running.
I just came across this Python code which allegedly does both timeout and subprocess-killing on Windows:
http://benjamin.smedbergs.us/blog/2006-12-11/killableprocesspy/
This could be either used directly (it's Mozilla-licensed) or we could adapt the idea for our timeout program.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

