Skip to content
Snippets Groups Projects
Commit 91995b75 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

return also exit code in case root.exe is aborted (via abort()).

git-svn-id: http://root.cern.ch/svn/root/trunk@3177 27541ba8-7e3a-0410-8455-c3a389f83636
parent d42087a9
Branches
Tags
No related merge requests found
// @(#)root/rootx:$Name: $:$Id: rootx.cxx,v 1.6 2001/06/22 16:10:21 rdm Exp $
// @(#)root/rootx:$Name: $:$Id: rootx.cxx,v 1.7 2001/06/26 16:32:36 rdm Exp $
// Author: Fons Rademakers 19/02/98
//////////////////////////////////////////////////////////////////////////
......@@ -245,6 +245,9 @@ static void WaitChild(int childpid)
if (WIFEXITED(status))
exit(WEXITSTATUS(status));
if (WIFSIGNALED(status))
exit(WTERMSIG(status));
if (WIFSTOPPED(status)) { // child got ctlr-Z
raise(SIGTSTP); // stop also parent
kill(childpid, SIGCONT); // if parent wakes up, wake up child
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment