Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176842937
D19153.1793477946.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
981 B
Referenced Files
None
Subscribers
None
D19153.1793477946.diff
View Options
Index: head/sys/kgssapi/gss_impl.c
===================================================================
--- head/sys/kgssapi/gss_impl.c
+++ head/sys/kgssapi/gss_impl.c
@@ -112,6 +112,15 @@
cl = clnt_reconnect_create(nconf,
(struct sockaddr *) &sun, GSSD, GSSDVERS,
RPC_MAXDATASIZE, RPC_MAXDATASIZE);
+ /*
+ * The number of retries defaults to INT_MAX, which effectively
+ * means an infinite, uninterruptable loop. Limiting it to
+ * five retries keeps it from running forever.
+ */
+ if (cl != NULL) {
+ int retry_count = 5;
+ CLNT_CONTROL(cl, CLSET_RETRIES, &retry_count);
+ }
} else
cl = NULL;
Index: head/usr.sbin/gssd/gssd.c
===================================================================
--- head/usr.sbin/gssd/gssd.c
+++ head/usr.sbin/gssd/gssd.c
@@ -202,6 +202,7 @@
signal(SIGHUP, SIG_IGN);
}
signal(SIGTERM, gssd_terminate);
+ signal(SIGPIPE, gssd_terminate);
memset(&sun, 0, sizeof sun);
sun.sun_family = AF_LOCAL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 31, 8:19 PM (16 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41269185
Default Alt Text
D19153.1793477946.diff (981 B)
Attached To
Mode
D19153: Handle SIGPIPE in gssd, and limit kgssapi RPC retries
Attached
Detach File
Event Timeline