[master] Prevent init from telling us its story if the shutdown was planned.

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

 



dcantrell's recent change to the shutdown mechanism exposed a situation when
shutdown is correctly handled but the init's exit handler still gets called and
dumps its callstack, that's not desirable because (in case of an exception in
python code for example) part of the useful information on the screen is
scrolled out of view.
---
 loader/init.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/loader/init.c b/loader/init.c
index 443b53f..0d3db00 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -786,6 +786,7 @@ int main(int argc, char **argv) {
         doReboot = 1;
     }
 
+    expected_exit = 1;
     shutDown(doKill, doReboot?REBOOT:HALT);
 
     return 0;
-- 
1.6.2.5

_______________________________________________
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