summaryrefslogtreecommitdiffstats
path: root/src
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 09:11:07 (GMT)
commitaeadc5efbe74c2c977d288205c17bf04b2ec172c (patch)
treebeafc79260bd796d4599cb676b3935c3d848926a /src
parent1753380c39e3b845f6acee21ce25bad75dbf910c (diff)
downloadQt-aeadc5efbe74c2c977d288205c17bf04b2ec172c.zip
Qt-aeadc5efbe74c2c977d288205c17bf04b2ec172c.tar.gz
Qt-aeadc5efbe74c2c977d288205c17bf04b2ec172c.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')
-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 6e7a402..6e7bc47 100644
--- a/src/corelib/io/qfilesystemwatcher_kqueue.cpp
+++ b/src/corelib/io/qfilesystemwatcher_kqueue.cpp
@@ -205,19 +205,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)