Package: inotify-tools
Version: 3.13-1
Severity: normal
Tags: patch
The documentation for inotifytools_next_events( int timeout, int
num_events ) clearly states that the function is non-blocking if 0 is
passed to the 'timeout' argument, but in reality it blocks
indefinitely due to a bug in the code. The following patch corrects
it:
+++ inotifytools.c 2007-11-22 00:54:41.000000000 +0000
@@ -1169,7 +1169,7 @@
read_timeout.tv_sec = timeout;
read_timeout.tv_usec = 0;
static struct timeval * read_timeout_ptr;
- read_timeout_ptr = ( timeout < 0 ? NULL : &read_timeout );
+ read_timeout_ptr = ( timeout <= 0 ? NULL : &read_timeout );
FD_ZERO(&read_fds);
FD_SET(inotify_fd, &read_fds);
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-onice-noinit (PREEMPT)
Locale: LANG=pt_PT.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]