关于 epoll 的小小疑问, epoll 在等待事件的过程中会阻塞么
最近在看tornado的源码,有个RT的疑问
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 errno_from_exception(e) == errno.EINTR: continue else: raise
如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

评论(4)


发布评论
需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。