]> git.ipfire.org Git - thirdparty/tor.git/commit
On Windows, terminate processes by handle, not pid
authorNick Mathewson <nickm@torproject.org>
Thu, 10 Apr 2014 15:16:42 +0000 (11:16 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 14 Jun 2014 15:40:27 +0000 (11:40 -0400)
commit34f8723dc784142b30d92bbbdeb37089ae7a3bc5
treed3b61e791a0a130cf5cfc7a9d91d1d7d5ac6a2ce
parentf8344c2d28be2489c8abadd694b5b96fe18efc02
On Windows, terminate processes by handle, not pid

When we create a process yourself with CreateProcess, we get a
handle to the process in the PROCESS_INFO output structure.  But
instead of using that handle, we were manually looking up a _new_
handle based on the process ID, which is a poor idea, since the
process ID might refer to a new process later on, but the handle
can't.
src/common/util.c