[master] Catch "Exception" when window manager is starting.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When no exception class is specified, exception would also catch SystemExit and
then let the program go on so we end up with two instances of anaconda running.

I also corrected the previous log message about starting wm. At that moment we
can't know whether the WM startup will be successfull.
---
 anaconda |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/anaconda b/anaconda
index c5678b6..621e587 100755
--- a/anaconda
+++ b/anaconda
@@ -69,9 +69,8 @@ def doStartupX11Actions(runres="800x600"):
     # now start up the window manager
     try:
         wm_pid = startMetacityWM()
-        log.info("Started window manager, pid %s." % (wm_pid,))
-
-    except:
+        log.info("Starting window manager, pid %s." % (wm_pid,))
+    except Exception:
         wm_pid = None
         log.error("Unable to start the window manager.")
 
-- 
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux