What might cause ruby to lock up while exiting?

Posted by user30997 on Stack Overflow See other posts from Stack Overflow or by user30997
Published on 2010-03-13T00:37:00Z Indexed on 2010/03/13 1:07 UTC
Read the original article Hit count: 344

Filed under:
|
|
|

I have a ruby script that does a few perforce operations (through the scripting API) then simply ends:

def foo()
  ...
end

def bar()
  ...
end

foo()
bar()
puts __LINE__
exit 0
#end of file

...and while the LINE will print out, the process never ends, whether the exit(0) is there or not. This is ruby 1.8.6, primarily on the mac, but I'm seeing this on the PC as well.

I'm doing the usual google poking around, but hoped there might be a voice of experience here to bank on. Thanks.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about exit