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?
mantra exit code definitions
11000 3 2-
- Wes
- Member
- 1 posts
- Joined: May 2008
- Offline
-
- mark
- Staff
- 2655 posts
- Joined: July 2005
- Offline
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.
-
- lkelly
- Member
- 42 posts
- Joined:
- Offline
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.
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.
-
- edward
- Member
- 7967 posts
- Joined: July 2005
- Online
-
- Quick Links