* nscd/connections.c (nscd_init): Clean up fcntl call.

This commit is contained in:
Ulrich Drepper 2008-07-25 18:38:20 +00:00
parent c418b1ba4c
commit 9dd8477226
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View 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