diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-06-19 14:14:00 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-06-19 14:14:00 +0000 |
commit | 2da653f28f6d6d46f2eae780ee49f67a69ef206e (patch) | |
tree | 0654d9612448df06c145f34c7ba3e45c642800ed /src/comm | |
parent | fde23250a4f79b2893ba23a3cd75f9aa53395eea (diff) |
Changed CactusDefaultAbort() to return with the given return code to abort with
(and not with 0 as it was before).
This fixes PR CactusPUGH/1546.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3242 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/comm')
-rw-r--r-- | src/comm/CactusDefaultComm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comm/CactusDefaultComm.c b/src/comm/CactusDefaultComm.c index 128eb248..f1175ae8 100644 --- a/src/comm/CactusDefaultComm.c +++ b/src/comm/CactusDefaultComm.c @@ -394,7 +394,7 @@ int CactusDefaultExit (cGH *GH, int retval) @returntype int @returndesc This function should never return. - But if it does it will return 0. + But if it does it will return the return code to abort with. @endreturndesc @@*/ int CactusDefaultAbort (cGH *GH, int retval) @@ -414,10 +414,9 @@ int CactusDefaultAbort (cGH *GH, int retval) #else /* FIXME */ /*abort();*/ - retval = retval; #endif - exit (0); - return (0); + exit (retval); + return (retval); } |