【发布时间】:2016-03-15 19:43:04
【问题描述】:
当相应的事件队列已满时引发观察者队列事件时,inotify 系统显然会引发IN_Q_OVERFLOW 事件。我正在使用inotify python 包来注册 inotify 事件。我有兴趣知道何时引发 IN_Q_OVERFLOW 事件,但看起来 inotify 包完全忽略了此事件。有人对如何通过 inotify 或其他提供此行为的 python 包注册此事件有任何建议吗?
来自 inotify adapter.py 的片段
def __handle_inotify_event(self, wd, event_type):
"""Handle a series of events coming-in from inotify."""
....
if path is None:
break #if i print header.mask i clearly see 16384 or 0x00004000 the IN_Q_OVERFLOW bit
yield (header, type_names, path, filename)
代码在这里
【问题讨论】: