aboutsummaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-07-25 18:38:20 +0000
committerUlrich Drepper <drepper@redhat.com>2008-07-25 18:38:20 +0000
commit9dd8477226db6e5448f4880bb572be8f68b1ee9d (patch)
tree4fdac80b95faca64f27a9c9114fb26f7e056b373 /nscd
parentc418b1ba4cda2026554a3b98957eaab0d53c1245 (diff)
downloadglibc-9dd8477226db6e5448f4880bb572be8f68b1ee9d.tar
glibc-9dd8477226db6e5448f4880bb572be8f68b1ee9d.tar.gz
glibc-9dd8477226db6e5448f4880bb572be8f68b1ee9d.tar.bz2
glibc-9dd8477226db6e5448f4880bb572be8f68b1ee9d.zip
* nscd/connections.c (nscd_init): Clean up fcntl call.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 9b003cb2b0..a1b92f466b 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