FreeBSD Bugzilla – Attachment 147818 Details for
Bug 194025
[PATCH] nscd set query timeout properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
set timeout properly
nscd.patch (text/plain), 559 bytes, created by
David Shane Holden
on 2014-09-30 04:14:12 UTC
(
hide
)
Description:
set timeout properly
Filename:
MIME Type:
Creator:
David Shane Holden
Created:
2014-09-30 04:14:12 UTC
Size:
559 bytes
patch
obsolete
>diff --git a/usr.sbin/nscd/query.c b/usr.sbin/nscd/query.c >index c233e19..abd8fab 100644 >--- a/usr.sbin/nscd/query.c >+++ b/usr.sbin/nscd/query.c >@@ -1253,8 +1253,8 @@ init_query_state(int sockfd, size_t kevent_watermark, uid_t euid, gid_t egid) > retval->read_func = query_socket_read; > > get_time_func(&retval->creation_time); >- memcpy(&retval->timeout, &s_configuration->query_timeout, >- sizeof(struct timeval)); >+ retval->timeout.tv_usec = 0; >+ retval->timeout.tv_sec = s_configuration->query_timeout; > > TRACE_OUT(init_query_state); > return (retval);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194025
: 147818