Skip to content
Snippets Groups Projects
Commit 23ea9b01 authored by Axel Naumann's avatar Axel Naumann
Browse files

Force exit code into reasonable range (0..125)

git-svn-id: http://root.cern.ch/svn/root/trunk@43494 27541ba8-7e3a-0410-8455-c3a389f83636
parent 561cbf93
No related branches found
No related tags found
No related merge requests found
......@@ -432,7 +432,13 @@ void TRint::Run(Bool_t retrn)
if (QuitOpt()) {
if (retrn) return;
Terminate(error == 0 ? retval : error);
if (error) {
retval = error;
}
// Bring retval into sensible range, 0..125.
if (retval < 0) retval = 1;
else if (retval > 125) retval = 1;
Terminate(retval);
}
ClearInputFiles();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment