From b30f32698a2af99658b0def938c061acfbf916e2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 21 Nov 2017 11:58:25 +0100 Subject: [PATCH] neutrino: deactivate compatibility code in ExitRun(); ... our start script is aligned to new exit code 2 see https://bitbucket.org/neutrino-images/ni-buildsystem/commits/cd1328c41cb642c141b58d001dce06a96eff0a1c Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/3447a3d665d7ee1298215f31222fcbd59894b1ae Author: vanhofen Date: 2017-11-21 (Tue, 21 Nov 2017) Origin message was: ------------------ - neutrino: deactivate compatibility code in ExitRun(); ... our start script is aligned to new exit code 2 see https://bitbucket.org/neutrino-images/ni-buildsystem/commits/cd1328c41cb642c141b58d001dce06a96eff0a1c --- src/neutrino.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index b626121aa..0724876e0 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -4040,6 +4040,7 @@ void CNeutrinoApp::ExitRun(int exit_code) if (!do_exiting) return; +#if 0 /* For compatibility: /tmp/.reboot is not really needed anymore if we use the defined exit code 2 instead of this flagfile. @@ -4053,6 +4054,7 @@ void CNeutrinoApp::ExitRun(int exit_code) } else unlink("/tmp/.reboot"); +#endif printf("[neutrino] %s(int %d)\n", __func__, exit_code); printf("[neutrino] hw_caps->can_shutdown: %d\n", g_info.hw_caps->can_shutdown);