【问题标题】:Tornado Interrupted system callTornado 中断的系统调用
【发布时间】:2015-07-14 22:16:06
【问题描述】:

我不时收到此错误,不知道如何调试。

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

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

【问题讨论】:

    标签: python system tornado


    【解决方案1】:

    看来你应该升级你的 Tornado 版本;这个错误(从poll 返回的EINTR)似乎是fixed in the latest versions

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-19
      • 2015-01-09
      • 2011-08-06
      • 1970-01-01
      • 2022-11-24
      • 2016-01-30
      • 2016-02-01
      • 1970-01-01
      相关资源
      最近更新 更多