We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd909da commit a39f814Copy full SHA for a39f814
ng.c
@@ -96,6 +96,9 @@
96
#define CHUNKTYPE_EXIT 'X'
97
#define CHUNKTYPE_STARTINPUT 'S'
98
99
+// jruby-launcher specific constant
100
+#define JRUBY_EXIT_EXCEPTION (1)
101
+
102
/*
103
the following is required to compile for hp-ux
104
originally posted at http://jira.codehaus.org/browse/JRUBY-2346
@@ -324,6 +327,9 @@ void processExit(char *buf, unsigned long len) {
324
327
buf[bytesRead] = 0;
325
328
326
329
exitcode = atoi(buf);
330
+ if (exitcode != 0) {
331
+ exitcode = JRUBY_EXIT_EXCEPTION;
332
+ }
333
334
cleanUpAndExit(exitcode);
335
}
0 commit comments