Created
April 15, 2009 14:49
-
-
Save petyosi/95809 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
petyo@t400:~/Test$ cat test.rb fail.rb | |
#!/usr/bin/env ruby | |
require 'English' | |
require 'rubygems' | |
require 'ruby-debug' | |
pid = fork { exec("./fail.rb &> /dev/null") } | |
Process.wait(pid) | |
p $CHILD_STATUS.to_int | |
#!/usr/bin/env ruby | |
# | |
exit 1 | |
petyo@t400:~/Test$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment