diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-03-15 02:21:53 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 00:27:55 +0200 |
commit | 0d87f60c88c36598c009b7dc76269105e2714657 (patch) | |
tree | c186025fe55239ecabc35a99d6c68de1da0dec6c /proc | |
parent | 0209b2c932994e9ca55d39d98a83ea02aacd1332 (diff) | |
download | hurd-0d87f60c88c36598c009b7dc76269105e2714657.tar.gz hurd-0d87f60c88c36598c009b7dc76269105e2714657.tar.bz2 hurd-0d87f60c88c36598c009b7dc76269105e2714657.zip |
Use the new host_get_kernel_version introduced recently.
https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=5447f965f1e109f7ac9aeb91c0e3906969a4adb8
provides more context.
Message-Id: <ZBFkAXCYcj27UXRo@mars.tail36e24.ts.net>
Diffstat (limited to 'proc')
-rw-r--r-- | proc/host.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/proc/host.c b/proc/host.c index 4cfd710e..e78e70da 100644 --- a/proc/host.c +++ b/proc/host.c @@ -363,7 +363,12 @@ initialize_version_info (void) assert_backtrace (server_versions); server_versions_nalloc = 10; - err = host_kernel_version (mach_host_self (), kv); + err = host_get_kernel_version (mach_host_self (), kv); + if (err == MIG_BAD_ID) + { + /* Delete after some time. */ + err = host_kernel_version (mach_host_self (), kv); + } assert_backtrace (! err); /* Make sure the result is null-terminated, as the kernel doesn't guarantee it. */ |