]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* nscd/connections.c (nscd_init): Clean up fcntl call.
authorUlrich Drepper <drepper@redhat.com>
Fri, 25 Jul 2008 18:38:20 +0000 (18:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 25 Jul 2008 18:38:20 +0000 (18:38 +0000)
ChangeLog
nscd/connections.c

index 98775ce1027b89ebc40998f62b9eec541556226c..8279479bbfdf019109f77d2c298d15ee34271269 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
 
+       * nscd/connections.c (nscd_init): Clean up fcntl call.
+
        * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
        SOCK_NONBLOCK if possible.
 
index 9b003cb2b0e36757be63a5ed5346837fa1eb6e2a..a1b92f466b277ef625692e7219bb679ba2586f11 100644 (file)
@@ -531,7 +531,7 @@ nscd_init (void)
     {
       inotify_fd = inotify_init ();
       if (inotify_fd != -1)
-       fcntl (inotify_fd, F_SETFL, O_NONBLOCK);
+       fcntl (inotify_fd, F_SETFL, O_RDONLY | O_NONBLOCK);
     }
 # endif
 #endif