[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdecore
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-12-19 11:14:14
[Download RAW message or body]

CVS commit by waba: 

Set close-on-exec on file descriptor


  M +4 -1      ksycoca.cpp   1.76


--- kdelibs/kdecore/ksycoca.cpp  #1.75:1.76
@@ -36,4 +37,5 @@
 #include <stdlib.h>
 #include <unistd.h>
+#include <fcntl.h>
 
 #ifdef HAVE_SYS_MMAN_H
@@ -103,4 +105,5 @@ bool KSycoca::openDatabase( bool openDum
    if (database->open( IO_ReadOnly ))
    {
+     fcntl(database->handle(), F_SETFD, FD_CLOEXEC);
      m_sycoca_size = database->size();
 #ifdef HAVE_MMAP


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic