mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 21:07:57 +00:00
Fix a capture crash
This commit is contained in:
parent
70ad9fff26
commit
5170428913
@ -343,7 +343,6 @@ class IOUVM(BaseVM):
|
|||||||
log.warn("Could not determine the shared library dependencies for {}: {}".format(self._path, e))
|
log.warn("Could not determine the shared library dependencies for {}: {}".format(self._path, e))
|
||||||
return
|
return
|
||||||
|
|
||||||
print(output)
|
|
||||||
p = re.compile("([\.\w]+)\s=>\s+not found")
|
p = re.compile("([\.\w]+)\s=>\s+not found")
|
||||||
missing_libs = p.findall(output)
|
missing_libs = p.findall(output)
|
||||||
if missing_libs:
|
if missing_libs:
|
||||||
@ -890,6 +889,7 @@ class IOUVM(BaseVM):
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@asyncio.coroutine
|
||||||
def start_capture(self, adapter_number, port_number, output_file, data_link_type="DLT_EN10MB"):
|
def start_capture(self, adapter_number, port_number, output_file, data_link_type="DLT_EN10MB"):
|
||||||
"""
|
"""
|
||||||
Starts a packet capture.
|
Starts a packet capture.
|
||||||
@ -933,6 +933,7 @@ class IOUVM(BaseVM):
|
|||||||
self._update_iouyap_config()
|
self._update_iouyap_config()
|
||||||
os.kill(self._iouyap_process.pid, signal.SIGHUP)
|
os.kill(self._iouyap_process.pid, signal.SIGHUP)
|
||||||
|
|
||||||
|
@asyncio.coroutine
|
||||||
def stop_capture(self, adapter_number, port_number):
|
def stop_capture(self, adapter_number, port_number):
|
||||||
"""
|
"""
|
||||||
Stops a packet capture.
|
Stops a packet capture.
|
||||||
|
Loading…
Reference in New Issue
Block a user