mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
* nscd/connections.c (nscd_init): Clean up fcntl call.
This commit is contained in:
parent
c418b1ba4c
commit
9dd8477226
@ -1,5 +1,7 @@
|
|||||||
2008-07-25 Ulrich Drepper <drepper@redhat.com>
|
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
|
* nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
|
||||||
SOCK_NONBLOCK if possible.
|
SOCK_NONBLOCK if possible.
|
||||||
|
|
||||||
|
@ -531,7 +531,7 @@ nscd_init (void)
|
|||||||
{
|
{
|
||||||
inotify_fd = inotify_init ();
|
inotify_fd = inotify_init ();
|
||||||
if (inotify_fd != -1)
|
if (inotify_fd != -1)
|
||||||
fcntl (inotify_fd, F_SETFL, O_NONBLOCK);
|
fcntl (inotify_fd, F_SETFL, O_RDONLY | O_NONBLOCK);
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user