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"
command = process.command
PTY.spawn("#{process.command} 2>&1") do |stdin, stdout, pid|
until stdin.eof?
info stdin.gets, process
begin
PTY.spawn("#{process.command} 2>&1") do |stdin, stdout, pid|
until stdin.eof?
info stdin.gets, process
end
end
rescue PTY::ChildExited
# exited
end
end
end