git: fix(libkvm): return close() error status from kvm_close()
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed May 27 17:40:36 PDT 2026
commit 171bcb489b7a8fcdf326d95d02a63eaa1a7b2753
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date: Sat May 23 14:00:00 2026 +0000
fix(libkvm): return close() error status from kvm_close()
kvm_close() accumulated close() return values into 'error' via |=
but always returned 0, silently discarding close failures.
Return the accumulated error to match the function's int return type
and the kvm_close(3) manpage contract.
Summary of changes:
lib/libkvm/kvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/171bcb489b7a8fcdf326d95d02a63eaa1a7b2753
--
DragonFly BSD source repository
More information about the Commits
mailing list