Call kvm_close() before exit for consistency.
PR: 24654 Submitted by: Daniel Hemmerich zartik@yahoo.com
This commit is contained in:
parent
5d57194434
commit
c59c7f97ad
@ -266,8 +266,10 @@ main(argc, argv)
|
||||
|
||||
if (header || wcmd == 0) {
|
||||
pr_header(&now, nusers);
|
||||
if (wcmd == 0)
|
||||
if (wcmd == 0) {
|
||||
(void)kvm_close(kd);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
#define HEADER_USER "USER"
|
||||
#define HEADER_TTY "TTY"
|
||||
@ -417,6 +419,7 @@ main(argc, argv)
|
||||
longidle = pr_idle(ep->idle);
|
||||
(void)printf("%.*s\n", argwidth - longidle, ep->args);
|
||||
}
|
||||
(void)kvm_close(kd);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user