Change in vdsm[master]: adding log print before svdsm dies
ybronhei at redhat.com
ybronhei at redhat.com
Mon Dec 10 09:01:55 UTC 2012
Yaniv Bronhaim has uploaded a new change for review.
Change subject: adding log print before svdsm dies
......................................................................
adding log print before svdsm dies
Change-Id: I306836e6faec2c1e424ad445279427598625ed80
Signed-off-by: Yaniv Bronhaim <ybronhei at redhat.com>
---
M vdsm/supervdsmServer.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/14/9814/1
diff --git a/vdsm/supervdsmServer.py b/vdsm/supervdsmServer.py
index 1601ba5..25e9422 100755
--- a/vdsm/supervdsmServer.py
+++ b/vdsm/supervdsmServer.py
@@ -293,13 +293,14 @@
return mkimage.removeFs(path)
-def __pokeParent(parentPid, address):
+def __pokeParent(parentPid, address, log):
try:
while True:
os.kill(parentPid, 0)
sleep(2)
except Exception:
utils.rmFile(address)
+ log.debug("Killing SuperVdsm Process")
os.kill(os.getpid(), signal.SIGTERM)
@@ -350,7 +351,7 @@
log.debug("Setting up keep alive thread")
monThread = threading.Thread(target=__pokeParent,
- args=[int(parentPid), address])
+ args=[int(parentPid), address, log])
monThread.setDaemon(True)
monThread.start()
--
To view, visit http://gerrit.ovirt.org/9814
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I306836e6faec2c1e424ad445279427598625ed80
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei at redhat.com>
More information about the vdsm-patches
mailing list