capture PTY::ChildExited

This commit is contained in:
David Dollar
2010-06-22 17:19:47 -04:00
parent 75f0ce4b9c
commit c2000484bb
+7 -3
View File
@@ -77,10 +77,14 @@ private ######################################################################
FileUtils.mkdir_p "log" FileUtils.mkdir_p "log"
command = process.command command = process.command
PTY.spawn("#{process.command} 2>&1") do |stdin, stdout, pid| begin
until stdin.eof? PTY.spawn("#{process.command} 2>&1") do |stdin, stdout, pid|
info stdin.gets, process until stdin.eof?
info stdin.gets, process
end
end end
rescue PTY::ChildExited
# exited
end end
end end
end end