Branch: Tag:

2015-10-08

2015-10-08 09:59:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor [Inotify]: Improved support for blocking mode.

check() now also checks any InotifyMonitors.

1421:   int check(int|void max_wait, int|void max_cnt,    mapping(string:int)|void ret_stats)   { + #if HAVE_INOTIFY +  if (instance) { +  /* FIXME: No statistics currently available. */ +  instance->poll(); +  } + #endif    int scan_cnt = max_cnt;    int scan_wait = max_wait;    while(1) {