Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112018197
D19153.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
981 B
Referenced Files
None
Subscribers
None
D19153.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
Wed, Mar 12, 3:37 PM (10 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17122015
Default Alt Text
D19153.diff (981 B)
Attached To
Mode
D19153: Handle SIGPIPE in gssd, and limit kgssapi RPC retries
Attached
Detach File
Event Timeline
Log In to Comment