summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@coosemans.org>2010-11-26 09:11:07 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-11-26 16:07:36 (GMT)
commit42e861407a9977d3fa8daae5abe54e98ba6b05da (patch)
tree2e6cc12b280cf8eb808b207cde0b8ded205d6732 /src/corelib/io
parent3d442b86ae59b07bd0064e3a3ca9fc613545d3f3 (diff)
downloadQt-42e861407a9977d3fa8daae5abe54e98ba6b05da.zip
Qt-42e861407a9977d3fa8daae5abe54e98ba6b05da.tar.gz
Qt-42e861407a9977d3fa8daae5abe54e98ba6b05da.tar.bz2
QKqueueFileSystemWatcherEngine: Deleting kevent is handled by close().
Merge-request: 2425 Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qfilesystemwatcher_kqueue.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_kqueue.cpp b/src/corelib/io/qfilesystemwatcher_kqueue.cpp
index 45aea73..f66231a 100644
--- a/src/corelib/io/qfilesystemwatcher_kqueue.cpp
+++ b/src/corelib/io/qfilesystemwatcher_kqueue.cpp
@@ -203,19 +203,7 @@ QStringList QKqueueFileSystemWatcherEngine::removePaths(const QStringList &paths
if (x.isEmpty() || x != path)
continue;
- int fd = id < 0 ? -id : id;
- struct kevent kev;
- EV_SET(&kev,
- fd,
- EVFILT_VNODE,
- EV_DELETE,
- NOTE_DELETE | NOTE_WRITE | NOTE_EXTEND | NOTE_ATTRIB | NOTE_RENAME | NOTE_REVOKE,
- 0,
- 0);
- if (kevent(kqfd, &kev, 1, 0, 0, 0) == -1) {
- perror("QKqueueFileSystemWatcherEngine::removeWatch: kevent");
- }
- ::close(fd);
+ ::close(id < 0 ? -id : id);
it.remove();
if (id < 0)