FS#44036 - [inotify-tools] inotifytools_next_event is blocking with 0 as time argument

Attached to Project: Community Packages
Opened by Arne Döring (krux02) - Tuesday, 03 March 2015, 22:38 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 04 March 2015, 12:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

inotifytools_next_event should be non-blocking, when time is 0, as described here: http://inotify-tools.sourceforge.net/api/inotifytools_8h.html#2e121fde1cac7875d25a7e6c3bc57e1a. But it is blocking.

Additional info:
* package version community/inotify-tools 3.14-3

Steps to reproduce:

git clone git@bitbucket.org:krux02/inotifytools_bug.git
cd inotifytools_bug
make
./a.out


The program should exit immediately, because inotifytools_next_event() should return nullptr when there is no event queued up. But instead it just blocks forever.


This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 04 March 2015, 12:31 GMT
Reason for closing:  Fixed

Loading...