FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 01-21-2010, 02:26 PM
Ales Kozumplik
Default Prevent init from telling us its story if the shutdown was planned.

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;

Anaconda-devel-list mailing list

Thread Tools

All times are GMT. The time now is 07:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org