我突然出现了一个Broken pipe (Errno::EPIPE)
错误,我不知道它是什么,也不知道如何修复它.完全错误是:
example.rb:19:in `write': Broken pipe (Errno::EPIPE)
from example.rb:19:in `print'
from example.rb:19
我的代码第19行是:
vari.print("x=" + my_val + "&y=1&z=Add+Num\r\n")
我突然出现了一个Broken pipe (Errno::EPIPE)
错误,我不知道它是什么,也不知道如何修复它.完全错误是:
example.rb:19:in `write': Broken pipe (Errno::EPIPE)
from example.rb:19:in `print'
from example.rb:19
我的代码第19行是:
vari.print("x=" + my_val + "&y=1&z=Add+Num\r\n")
这意味着打印输出到的任何连接都不再连接.该程序可能是作为其他程序的输入而开始的:
% ruby_program | another_program
所发生的事情是,another_program
已经退出某个时间之前的print
个问题.