From: Ulrich Drepper Date: Fri, 25 Jul 2008 18:38:20 +0000 (+0000) Subject: * nscd/connections.c (nscd_init): Clean up fcntl call. X-Git-Tag: cvs/fedora-glibc-20080728T2320~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9dd8477226db6e5448f4880bb572be8f68b1ee9d;p=thirdparty%2Fglibc.git * nscd/connections.c (nscd_init): Clean up fcntl call. --- diff --git a/ChangeLog b/ChangeLog index 98775ce1027..8279479bbfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-07-25 Ulrich Drepper + * nscd/connections.c (nscd_init): Clean up fcntl call. + * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and SOCK_NONBLOCK if possible. diff --git a/nscd/connections.c b/nscd/connections.c index 9b003cb2b0e..a1b92f466b2 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -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