Permalink
Browse files

timeout and exit

  • Loading branch information...
1 parent 55bf9e8 commit af42701f6c279340199b761ff4651e069f09f806 @kengonakajima committed Apr 13, 2012
Showing with 12 additions and 0 deletions.
  1. +10 −0 ruby/timeout/aho.rb
  2. +2 −0 ruby/timeout/hoge.rb
View
@@ -0,0 +1,10 @@
+#!/usr/bin/ruby
+Thread.new do
+ sleep 1
+ STDERR.print "XXX\n"
+ exit 1
+end
+
+a = `find /etc`
+
+print a
View
@@ -0,0 +1,2 @@
+a = system("./aho.rb")
+print "ret:",a,"\n"

0 comments on commit af42701

Please sign in to comment.