Alon Bar-Lev has uploaded a new change for review.

Change subject: system: reboot: chdir to / as daemon
......................................................................

system: reboot: chdir to / as daemon

Change-Id: I4865c0b9bbd03fbf00ec7237b60ff4354fd5d88d
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M src/plugins/otopi/system/reboot.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/29/13429/1

diff --git a/src/plugins/otopi/system/reboot.py 
b/src/plugins/otopi/system/reboot.py
index 861e8e2..53c45b7 100644
--- a/src/plugins/otopi/system/reboot.py
+++ b/src/plugins/otopi/system/reboot.py
@@ -57,6 +57,7 @@
         pid = os.fork()
         if pid == 0:
             try:
+                os.chdir('/')
                 os.setsid()
                 for fd in range(0, maxfd):
                     try:


--
To view, visit http://gerrit.ovirt.org/13429
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4865c0b9bbd03fbf00ec7237b60ff4354fd5d88d
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to