Use SIGTERM instead of SIGUSR1 to stop vpcs.

pull/21/head^2
grossmj 10 years ago
parent 3b05d89837
commit 6c0918312c

@ -251,7 +251,6 @@ class VPCSDevice(object):
:returns: VPCS command line (string)
"""
print(self._build_command())
return " ".join(self._build_command())
def delete(self):
@ -319,7 +318,7 @@ class VPCSDevice(object):
# stop the VPCS process
if self.is_running():
log.info("stopping VPCS instance {} PID={}".format(self._id, self._process.pid))
self._process.send_signal(signal.SIGUSR1) # send SIGUSR1 will stop VPCS
self._process.send_signal(signal.SIGTERM) # send SIGTERM will stop VPCS
self._process.wait()
self._process = None

Loading…
Cancel
Save