MFNetBSD
Decrease log severity to debug if a protocol is not supported by the kernel (rpcbind checks /etc/netconfig if a protocol is available). This avoids "rpcbind: cannot create socket for tcp6" messages at startup on IPv4-only kernels.
This commit is contained in:
parent
c5fe547333
commit
90c9edaaa4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133789
@ -274,7 +274,11 @@ init_transport(struct netconfig *nconf)
|
||||
*/
|
||||
if (nconf->nc_semantics != NC_TPI_CLTS) {
|
||||
if ((fd = __rpc_nconf2fd(nconf)) < 0) {
|
||||
syslog(LOG_ERR, "cannot create socket for %s",
|
||||
int non_fatal = 0;
|
||||
|
||||
if (errno == EPROTONOSUPPORT)
|
||||
non_fatal = 1;
|
||||
syslog(non_fatal?LOG_DEBUG:LOG_ERR, "cannot create socket for %s",
|
||||
nconf->nc_netid);
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user