Patches: Browse | Submit New | Admin

[#19698] [systemu] exit status from JRuby

Date:
2008-04-21 21:54
Priority:
3
Submitted By:
Markus Barchfeld (mbarchfe)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
[systemu] exit status from JRuby

Detailed description
In child_program JRuby (tested with 1.1) throws SystemExit which contains the exit status.

systemu.rb
Index: .
===================================================================
--- .	(revision 602)
+++ .	(working copy)
@@ -188,6 +188,9 @@
         PIPE.close
 
         exec *argv
+      rescue SystemExit => e
+        # jruby
+ 	    exit e.status       
       rescue Exception => e
         PIPE.write Marshal.dump(e) rescue nil
         exit 42

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item