git: cd7af78e1241 - main - rpcbind: do not exit abruptly if krpc.ko is not available
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Jun 2025 14:09:16 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=cd7af78e1241f23d140e343889d3a2f95c2b54f4
commit cd7af78e1241f23d140e343889d3a2f95c2b54f4
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-06-12 13:14:37 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-06-12 14:09:01 +0000
rpcbind: do not exit abruptly if krpc.ko is not available
Reviewed by: glebius, rmacklem
Sponsored by: The FreeBSD Foundation
---
usr.sbin/rpcbind/rpcbind.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c
index d165bcd9fbfc..182dbff7dbed 100644
--- a/usr.sbin/rpcbind/rpcbind.c
+++ b/usr.sbin/rpcbind/rpcbind.c
@@ -160,8 +160,10 @@ main(int argc, char *argv[])
update_bound_sa();
/* Ensure krpc is loaded */
- if (modfind("krpc") < 0 && kldload("krpc") < 0)
- err(1, "krpc");
+ if (modfind("krpc") < 0 && kldload("krpc") < 0) {
+ warn("failed to load krpc module, "
+ "rpcbind services for kernel disabled");
+ }
/* Check that another rpcbind isn't already running. */
if ((rpcbindlockfd = open(RPCBINDDLOCK, O_RDONLY|O_CREAT, 0444)) < 0)