Dustin C. Hatch eefcc554c0 inotify: Correctly handle multi-struct reads
When reading from the *inotify* file descriptor, multiple structs can be
returned. Because the read loop was incorrectly calculating offsets,
messages would frequently get lost in this way. This commit simplifies
the logic of the read loop, using only a single position indicator and
correctly calculating all offsets from that on each iteration. The
result is that no more messages are incorrectly skipped.
2018-09-03 14:29:28 -05:00
2016-09-17 09:41:43 -05:00
2016-09-23 10:24:18 -05:00
2016-09-23 10:24:18 -05:00
2018-09-03 14:26:39 -05:00
Description
The *linuxapi* package provides Python bindings (using ctypes) for Linux-specific APIs, including inotify, getifaddrs, and unshare.
188 KiB
Languages
Python 99.8%
Makefile 0.2%