Commit Graph

13 Commits

Author SHA1 Message Date
Yuya Nishihara
63bc6388d0 killdaemons: correct typo of _check() function caught by pyflakes 2014-04-29 12:37:36 +09:00
Augie Fackler
30760aaf72 killdaemons: drop superfluous L suffix from constant
As far as I'm aware PEP 237[0] means this suffix is superfluous even
on Python 2.4, and we can just drop it, which makes this code happy on
Python 3.

0: http://legacy.python.org/dev/peps/pep-0237/
2014-03-10 17:52:42 -04:00
Simon Heimberg
2c8f3e258b tests: killdaemons.py for windows distinguishes access violation and terminated
To distinguish between access violaition (process belonging to another user)
and a terminated process, PROCESS_QUERY_INFORMATION must be enabled. But
TerminateProcess still raises error 5 in both cases. Therefore check before if
the process has already terminated.
2014-02-12 16:09:18 +01:00
Simon Heimberg
ad307f52ea tests: killdaemons.py for checks reason when getting no process handle 2014-02-12 15:38:59 +01:00
Simon Heimberg
700d7ff53a tests: killdaemons.py for windows waits for killed process to terminate
After kill, wait for the process to terminate. When it does not in time,
write a debug message similar as in other os. But no 2nd forceful attempt
is done.
2014-01-17 21:13:20 +01:00
Simon Heimberg
b0d67373c0 tests: kill for windows in killdaemons.py checks return values
The return values of the windll calls are checked and when an error is
indicated, it is raised. The handle is still closed properly.
2014-01-17 21:13:08 +01:00
Patrick Mezard
7d8680da1f killdaemons: take file argument explicitely
It makes it easier to use as a generic replacement for kill utility,
mostly for Windows tests.
2012-08-20 22:36:51 +02:00
Patrick Mezard
d56e57416a killdaemons: add windows implementation 2012-08-19 18:06:15 +02:00
Patrick Mezard
50b52183c2 run-tests: do not duplicate killdaemons() code 2012-08-19 16:41:09 +02:00
Nicolas Dumazet
7f1a963829 pylint, pyflakes: remove unused or duplicate imports 2010-04-14 17:58:10 +09:00
Alejandro Santos
77d606ac51 compat: use open() instead of file() everywhere 2009-07-05 11:01:30 +02:00
Dirkjan Ochtman
1763cebde5 tests: make killdaemons.py executable 2008-11-07 23:56:02 +01:00
Matt Mackall
eed64a7674 tests: add killdaemons helper script 2008-11-07 16:28:53 -06:00