Date: Sun, 18 Apr 1999 07:29:57 -0400 (EDT) From: Brian Feldman <green@unixhelp.org> To: hackers@FreeBSD.org Subject: LinuxThreads doesn't fdfree? Message-ID: <Pine.BSF.4.10.9904180711520.31627-100000@janus.syracuse.net>
next in thread | raw e-mail | index | archive | help
Is it just me, or at kern_exit.c:441, I notice that fd's are never freed? This can cause problems (of course leaked memory) such as a socket remaining open when a process exits! That can definitely lead to a panic. Now, can someone evaluate all of the code Dick added around exit() and wait() (mach dep too), and at least tell me if I'm right about this. fdfree() shouldn't free fd in this case, but shouldn't we at least be decrementing the refcnt? Brian Feldman _ __ ___ ____ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \ _ \ |) | http://www.freebsd.org _ |___)___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9904180711520.31627-100000>