Ticket #43203: patch-bus-dir-watch-kqueue.c.diff
File patch-bus-dir-watch-kqueue.c.diff, 789 bytes (added by RJVB (René Bertin), 11 years ago) |
---|
-
bus/dir-watch-kqueue.c
old new 259 259 /* FIXME - less lame error handling for failing to add a watch; 260 260 * we may need to sleep. 261 261 */ 262 #ifdef O_CLOEXEC 262 263 fd = open (new_dirs[i], O_RDONLY | O_CLOEXEC); 264 #else 265 fd = open (new_dirs[i], O_RDONLY); 266 #endif 263 267 if (fd < 0) 264 268 { 265 269 if (errno != ENOENT) … … 274 278 continue; 275 279 } 276 280 } 281 #ifndef O_CLOEXEC 282 _dbus_fd_set_close_on_exec(fd); 283 #endif 277 284 278 285 EV_SET (&ev, fd, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR, 279 286 NOTE_DELETE | NOTE_EXTEND | NOTE_WRITE | NOTE_RENAME, 0, 0);