mantra exit code definitions

   11340   3   2
User Avatar
Member
1 posts
Joined: 5月 2008
オフライン
Hi,
I tried asking support@sidefx.com this earlier but didn't get a useful answer. Although I thank them for taking the time to respond, a list of posix signals is not what I was after.

I noticed if mantra receives a signal 9 (SIGKILL) the exit code it returns is 36608. If it receives a signal 1 (SIGHUP), the exit code it returns is 33024. It seems to return a rather large range of exit codes depending on how the process ended, be it via receiving a posix signal or internal error handling or various states of normal successful task completion.

I'm trying to automate scripting some tests to see if/how various machine types on our render farm are able to cope with mantra rendering as we've hit a few snags with certain OS revisions and machine models.

Where can I find a list of these exit code definitions?
User Avatar
スタッフ
2673 posts
Joined: 7月 2005
オフライン
Wes
Hi,
I tried asking support@sidefx.com this earlier but didn't get a useful answer. Although I thank them for taking the time to respond, a list of posix signals is not what I was after.

I noticed if mantra receives a signal 9 (SIGKILL) the exit code it returns is 36608. If it receives a signal 1 (SIGHUP), the exit code it returns is 33024. It seems to return a rather large range of exit codes depending on how the process ended, be it via receiving a posix signal or internal error handling or various states of normal successful task completion.

I'm trying to automate scripting some tests to see if/how various machine types on our render farm are able to cope with mantra rendering as we've hit a few snags with certain OS revisions and machine models.

Where can I find a list of these exit code definitions?

On Unix systems, signals are mangled into the exit status. If you look at “man 2 wait”, you should see documentation for the WIFEXITED(), WEXITSTATUS() WIFSIGNALED(), etc. macros which are used to decode the verbatim exit status.
User Avatar
Member
42 posts
Joined:
オフライン
This is from the enum which can be found in $HFS/toolkit/include/UT

EXIT_OK = 0,
EXIT_GENERIC_ERROR = 1,
EXIT_BUILTIN_ERROR = 2,
EXIT_LICENSE_ERROR = 3,
EXIT_SOCKET_ERROR = 4,
EXIT_PARSE_UI_ERROR = 5

Specificly, mantra will only exit with either EXIT_OK or
EXIT_GENERIC_ERROR. Other errors may be triggered by lower level
libraries.
User Avatar
Member
8053 posts
Joined: 7月 2005
オフライン
Note though, that an application can't handle SIGKILL, it is unconditionally terminated in that case. This means that the exit code after SIGKILL is unlikely to be useful.
  • Quick Links