Mercurial > ~astiob > upreckon > hgweb
comparison win32.py @ 125:10aa5a0e46bd
Fixed an exception raised instead of forceful process termination on Win32
| author | Oleg Oshmyan <chortos@inbox.lv> |
|---|---|
| date | Sun, 15 May 2011 00:33:32 +0100 |
| parents | d6fd880207cb |
| children | 42c8f5c152a5 |
comparison
equal
deleted
inserted
replaced
| 124:19c42a3cd962 | 125:10aa5a0e46bd |
|---|---|
| 542 | 542 |
| 543 def kill(process): | 543 def kill(process): |
| 544 try: | 544 try: |
| 545 process.terminate() | 545 process.terminate() |
| 546 except AttributeError: | 546 except AttributeError: |
| 547 TerminateProcess(process._handle) | 547 TerminateProcess(process._handle, 1) |
| 548 terminate = kill | 548 terminate = kill |
