seb-m / pyinotify

Monitoring filesystems events with inotify on Linux.
http://github.com/seb-m/pyinotify/wiki
MIT License
2.29k stars 377 forks source link

Python segfaults on alphine linux when call read_event #131

Open boolking opened 8 years ago

boolking commented 8 years ago

On alphine linux, python segfaults when call read_event, and it is caused by ioctl's unnecessary (default) parameter mutate_flag.

if fcntl.ioctl(self._fd, termios.FIONREAD, buf_, 1) == -1:
            return

Reference: Alphine bug python-prompt-toolkit pull request