本文介绍了断管 (Errno::EPIPE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Broken pipe (Errno::EPIPE)
错误弹出,我不明白它是什么或如何修复它.完整的错误是:
i have a Broken pipe (Errno::EPIPE)
error popping up and i don't understand what it is or how to fix it. the full error is:
example.rb:19:in `write': Broken pipe (Errno::EPIPE)
from example.rb:19:in `print'
from example.rb:19
我的代码的第 19 行是:
line 19 of my code is:
vari.print("x=" + my_val + "&y=1&z=Add+Num\r\n")
推荐答案
这意味着打印输出到的任何连接都不再连接.据推测,该程序是作为其他程序的输入开始的:
It means that whatever connection print is outputting to is no longer connected. Presumably the program began as input to some other program:
% ruby_program | another_program
发生的事情是 another_program
在有问题的 print
之前的某个时间退出了.
What's happened is that another_program
has exited sometime before the print
in question.
这篇关于断管 (Errno::EPIPE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!