Zorro.exe return codes

Posted By: AndrewAMD

Zorro.exe return codes - 08/01/20 16:51

jcl,

If a Zorro process is launched from the command line, it would be useful to be able to get return codes, for example, to detect a crash.

If I might make a suggestion: in the script, let the script writer set a global value for return codes, and then whenever the process exits or crashes, it will use that return code regardless.

For example, if a script writer wants to detect child process crashes with return codes, on init, script sets ProcessReturnCode to 1, and during cleanup(), script sets ProcessReturnCode to 0. Therefore, if the child script crashes unexpectedly, the process returns 1, otherwise 0 for success.
Posted By: jcl

Re: Zorro.exe return codes - 08/03/20 09:41

Good idea.
© 2024 lite-C Forums