pike.git / lib / modules / Filesystem.pmod / Monitor.pmod / basic.pike

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1223:   //!   //! @note   //! If nonblocking mode is already active, this function will   //! be a noop.   //!   //! @seealso   //! @[set_blocking()], @[check()].   void set_nonblocking(int|void t)   {    if (co_id) return; -  if (zero_type(t)) { +  if (undefinedp(t)) {    Monitor m = monitor_queue->peek();    t = (m && m->next_poll - time(1)) || max_dir_check_interval;    if (t > max_dir_check_interval) t = max_dir_check_interval;    if (t < 0) t = 0;    }   #if HAVE_EVENTSTREAM    // If we are using FSEvents, we don't need any call_outs.    co_id = 1;   #elseif HAVE_INOTIFY    // If we are using Inotify, we don't need any call_outs.