mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Fix pep8 errors in all of zenmap
This commit is contained in:
@@ -261,10 +261,11 @@ class NmapCommand(object):
|
||||
os.kill(self.command_process.pid, SIGTERM)
|
||||
for i in range(10):
|
||||
sleep(0.5)
|
||||
if self.command_process.poll() is not None: # Process has been TERMinated
|
||||
if self.command_process.poll() is not None:
|
||||
# Process has been TERMinated
|
||||
break
|
||||
else:
|
||||
log.debug(">>> SIGTERM has not worked even after waiting for 5 seconds. Using SIGKILL.")
|
||||
log.debug(">>> SIGTERM has not worked even after waiting for 5 seconds. Using SIGKILL.") # noqa
|
||||
os.kill(self.command_process.pid, SIGKILL)
|
||||
self.command_process.wait()
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user