Permalink
Browse files

+ Correct line reporting

  • Loading branch information...
kschiess committed Mar 30, 2012
1 parent 1b3ddee commit c75a1013b277eb3efb9f993e14c2363329cd9f09
Showing with 2 additions and 5 deletions.
  1. +1 −4 lib/cod/pipe.rb
  2. +1 −1 website/lib/example.rb
View
@@ -119,10 +119,7 @@ def get(opts={})
raise Cod::WriteOnlyChannel unless can_read?
pipe.close_w
- loop do
- ready = Cod.select(nil, self)
- return deserialize_one if ready
- end
+ return deserialize_one
rescue EOFError
raise Cod::ConnectionLost,
"All pipe ends seem to be closed. Reading from this pipe will not "+
View
@@ -41,7 +41,7 @@ def run
pid = fork do
redirect_streams(tempfiles)
# puts example_code
- eval(code, nil, @file, @line)
+ eval(code, nil, @file, @line-2)
end
Process.wait(pid)

0 comments on commit c75a101

Please sign in to comment.