[PATCH 1 of 2] run-tests: implement proper process killing for Windows
Pierre-Yves David
pierre-yves.david at logilab.fr
Mon Jun 18 04:19:52 CDT 2012
On Mon, Jun 18, 2012 at 12:35:17AM +0200, Adrian Buehlmann wrote:
> +if os.name == 'nt':
> + import ctypes
> + def killprocess(pid):
> + vlog('# Killing daemon process %d' % pid)
> + PROCESS_TERMINATE = 1
> + k = ctypes.windll.kernel32
> + handle = k.OpenProcess(PROCESS_TERMINATE, False, pid)
You this is the single use of PROCESS_TERMINATE. Can't you just use 1 here ?
--
Pierre-Yves David
http://www.logilab.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120618/a8f95ed5/attachment.pgp>
More information about the Mercurial-devel
mailing list