[master][PATCH] Don't forget to call os._exit() in the child process

Vratislav Podzimek vpodzime at redhat.com
Tue Apr 22 16:28:25 UTC 2014


Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/users.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/users.py b/pyanaconda/users.py
index 0c8a5cb..d13ec02 100644
--- a/pyanaconda/users.py
+++ b/pyanaconda/users.py
@@ -421,7 +421,10 @@ class Users:
                 self.admin.lockUser(user)
 
             user.set(libuser.SHADOWLASTCHANGE, "")
-            self.admin.modifyUser(user)
+            if self.admin.modifyUser(user):
+                os._exit(0)
+            else:
+                os._exit(1)
         else:
             return self._finishChroot(childpid)
 
-- 
1.9.0



More information about the anaconda-patches mailing list