Skip to content

Catch exit calls

On many occasions MUMPS will call exit(ERR) without giving external callers a chance to recover, and with providing minimal output. It would be great to work around this, albeit quite challenging.

Some options would be:

  • Calling mumps in a subprocess, but this brings extra overhead
  • Overriding the exit function compile time, like hinted in this stackoverflow answer
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information