Skip to content

Commit

Permalink
* nscd/connections.c (nscd_init): Clean up fcntl call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jul 25, 2008
1 parent c418b1b commit 9dd8477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion nscd/connections.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9dd8477

Please sign in to comment.