Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 龙卷风中断系统调用_Python_System_Tornado - Fatal编程技术网

Python 龙卷风中断系统调用

Python 龙卷风中断系统调用,python,system,tornado,Python,System,Tornado,我经常会遇到这个错误,不知道如何调试 Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/tornado/ioloop.py", line 662, in start event_pairs = self._impl.poll(poll_timeout) IOError: [Errno 4] Interrupted system call 有人知道这意味着什么吗 我正在使用python

我经常会遇到这个错误,不知道如何调试

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/tornado/ioloop.py", line 662, in start
    event_pairs = self._impl.poll(poll_timeout)
IOError: [Errno 4] Interrupted system call
有人知道这意味着什么吗

我正在使用python 2.7和tornado 3.2.1

更新:此代码位于ioloop.py中


看来你应该升级你的龙卷风版本;此错误(
poll
返回的
EINTR
)似乎是错误

try:
    event_pairs = self._impl.poll(poll_timeout)
except Exception as e:
    # Depending on python version and IOLoop implementation,
    # different exception types may be thrown and there are
    # two ways EINTR might be signaled:
    # * e.errno == errno.EINTR
    # * e.args is like (errno.EINTR, 'Interrupted system call')
    if (getattr(e, 'errno', None) == errno.EINTR or
          (isinstance(getattr(e, 'args', None), tuple) and
          len(e.args) == 2 and e.args[0] == errno.EINTR)):
        continue
    else:
        raise