Project

General

Profile

Feature #1584

Allow exit codes in CkExit() / CkAbort()

Added by Matthias Diener 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06/04/2017
Due date:
% Done:

0%


Description

Currently, CkExit() and CkAbort() do not allow passing a custom exit code to the calling shell, making it necessary to use workarounds such as https://charm.cs.illinois.edu/gerrit/#/c/2556/ in order to inform the user.
It would be nice to have this functionality.
Care must be taken since
  1. The method signature should no the changed. CkExit() is currently extern "C" 'ed, so an optional parameter is not possible.
  2. In case multiple PEs call CkExit(), which exit code is reported?

History

#1 Updated by Phil Miller about 2 months ago

  • Target version changed from 6.8.1 to 6.9.0

As a core API change, this is not going to be appropriate for a bug-fix/patch release. So, re-targeting for a future feature release.

#2 Updated by Matthias Diener about 2 months ago

We could do something like this: https://stackoverflow.com/questions/3046889/optional-parameters-with-c-macros
which would not need an API change.

Also available in: Atom PDF