From f0263d44f95807a91464fa7300de68376eae2dfb Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 15 Apr 2022 03:04:52 +0000 Subject: [PATCH] delete an ancient paragraph suggesting the wrong reason to use close(2) (and we all laughed a little) --- lib/libc/sys/close.2 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2 index 0be284c67a9..d75d5a05e84 100644 --- a/lib/libc/sys/close.2 +++ b/lib/libc/sys/close.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: close.2,v 1.18 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: close.2,v 1.19 2022/04/15 03:04:52 deraadt Exp $ .\" $NetBSD: close.2,v 1.5 1995/02/27 12:32:14 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)close.2 8.2 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: April 15 2022 $ .Dt CLOSE 2 .Os .Sh NAME @@ -68,13 +68,6 @@ are removed when .Em any file descriptor for that file is closed by that process. .Pp -When a process exits, -all associated file descriptors are freed, but since there is -a limit on active descriptors per process, the -.Fn close -function call -is useful when a large quantity of file descriptors are being handled. -.Pp When a process forks (see .Xr fork 2 ) , all descriptors for the new child process reference the same -- 2.20.1