| Summary: | /usr/bin/w doesn't close all files | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Daniel.Hemmerich <Daniel.Hemmerich> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Daniel.Hemmerich
2001-01-26 05:10:02 UTC
While all kvm_close() does currently is close() descriptors and free
dynamic memory, it does seem like the right thing to always call it.
Index: w.c
===================================================================
RCS file: /ncvs/src/usr.bin/w/w.c,v
retrieving revision 1.38
diff -u -r1.38 w.c
--- w.c 1999/11/17 15:28:45 1.38
+++ w.c 2001/03/14 22:26:06
@@ -407,6 +407,7 @@
longidle = pr_idle(ep->idle);
(void)printf("%.*s\n", argwidth - longidle, ep->args);
}
+ (void)kvm_close(kd);
exit(0);
}
--
|| Seth Kingsley || BSDi/Open Source Division || sethk@osd.bsdi.com ||
State Changed From-To: open->closed Committed, thanks! (although you missed 50% of the relevant exits :-) |