Remove duplicate fnctl() call.
authorRobin Burchell <robin.burchell@collabora.com>
Thu, 5 Jan 2012 17:49:12 +0000 (18:49 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 6 Jan 2012 10:19:23 +0000 (11:19 +0100)
QInotifyFileSystemWatcherEngine's constructor calls this, there's no need to do
it twice.

Change-Id: Ic19e758a3f87f2e3a885e5b834f59a5a0fe13f4b
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
src/corelib/io/qfilesystemwatcher_inotify.cpp

index ffe3a2e..79d7d7c 100644 (file)
@@ -220,7 +220,6 @@ QInotifyFileSystemWatcherEngine *QInotifyFileSystemWatcherEngine::create()
         fd = inotify_init();
         if (fd == -1)
             return 0;
-        ::fcntl(fd, F_SETFD, FD_CLOEXEC);
     }
     return new QInotifyFileSystemWatcherEngine(fd);
 }