aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--nscd/connections.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 98775ce..8279479 100644
--- 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.
diff --git a/nscd/connections.c b/nscd/connections.c
index 9b003cb..a1b92f4 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