[Buildbot-commits] [Buildbot] #387: TerminateProcess fails in buildbot_service.py

Buildbot nobody at buildbot.net
Sat Jul 14 15:53:18 UTC 2012


#387: TerminateProcess fails in buildbot_service.py
--------------------+--------------------
Reporter:  griels   |       Owner:
    Type:  defect   |      Status:  new
Priority:  major    |   Milestone:  0.8.+
 Version:  0.7.5    |  Resolution:
Keywords:  windows  |
--------------------+--------------------

Comment (by LRN):

 There's a timing-related permissions problem (actually, it's not a
 permissions problem, AFAICS, the process is just in a state in which you
 can't kill it, no matter how privileged you are) described later in the
 thread. Safe process terminator can't avoid THAT particular problem.

 It could be that TerminateProcess() has the _same_ problem. If so, this
 can be diagnosed by catching pywintypes.error of type 5 ("Access denied"),
 sleeping for N milliseconds, then checking if the process is still alive.
 If this is the same problem, then process would be dead after N
 milliseconds, in spite of TerminateProcess() failing initially with
 "Access denied".

 I haven't actually tried that for TerminateProcess(), since i've jumped at
 SafeTerminateProcess() straight away, trying to fix my TerminateProcess()
 problem.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/387#comment:6>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list