Date: Fri, 26 Jan 2001 00:07:15 -0500 (EST) From: Daniel.Hemmerich@blackhole.gurubox.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/24654: /usr/bin/w doesn't close all files Message-ID: <200101260507.f0Q57F846613@blackhole.gurubox.com>
next in thread | raw e-mail | index | archive | help
>Number: 24654 >Category: bin >Synopsis: /usr/bin/w doesn't close all files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 25 21:10:02 PST 2001 >Closed-Date: >Last-Modified: >Originator: Daniel Hemmerich >Release: I would presume all versions of FreeBSD, but have not verified that >Organization: BSDpro.com >Environment: N/A >Description: /usr/bin/w does not close all files prior to exiting. It calls functions from the kvm library, which in turn is openning /dev/null (at w's request), however, w does not call the kvm_close(). >How-To-Repeat: You can witness this by stepping through the program via a gdb. >Fix: Insert prior to line 417 in src/usr.bin/w/w.c the line: kvm_close(kd); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101260507.f0Q57F846613>