From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 5442 invoked from network); 19 Oct 2023 03:34:33 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 19 Oct 2023 03:34:33 -0000 Received: from pb-smtp2.pobox.com ([64.147.108.71]) by 9front; Wed Oct 18 23:33:18 -0400 2023 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 7E8BD1B4A56 for <9front@9front.org>; Wed, 18 Oct 2023 23:33:13 -0400 (EDT) (envelope-from unobe@cpan.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id :from:to:subject:date:mime-version:content-type :content-transfer-encoding; s=sasl; bh=5rEgn1biAbWyxDHNOjt50/Zb7 lrhHZG7mVprTif+Jfg=; b=bR8fj9CIANple5F+K/9MGIazxAS/pxAIuaUtEcI4M t66cmW4N6gdsMNuW+Q+e+6v3yv2e0bGsuHlW3JxpZ6EKy9+r4uRVZRoRjqTNs2FS ap0CBOlXnm2yhpZus1N+Eo5Dfkxg8I8TXEPXf24i0bqJ2Iyg1bW5XMb4jy4wcFYg Jk= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 75E581B4A55 for <9front@9front.org>; Wed, 18 Oct 2023 23:33:13 -0400 (EDT) (envelope-from unobe@cpan.org) Received: from strider.localdomain (unknown [75.237.236.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 8B76F1B4A54 for <9front@9front.org>; Wed, 18 Oct 2023 23:33:12 -0400 (EDT) (envelope-from unobe@cpan.org) Message-ID: <008168B6FF1F96B534709558629B6497@smtp.pobox.com> From: Romano To: 9front@9front.org Date: Wed, 18 Oct 2023 20:33:10 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Pobox-Relay-ID: 3B44EEDA-6E30-11EE-B1FB-25B3960A682E-09620299!pb-smtp2.pobox.com Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: progressive compliant shader app Subject: [9front] rc: asynchronous read fds do not close/free Reply-To: 9front@9front.org Precedence: bulk All, When creating a small helper script, I noticed that the fd for asynchronous reads were not being closed or freed. I'm not sure the proper terminology, so here's an example: cpu% echo 'while() { sleep 1 cat <{echo -n} wc -l /proc/$pid/fd }' | rc 6 /proc/858741/fd 7 /proc/858741/fd 8 /proc/858741/fd 9 /proc/858741/fd 10 /proc/858741/fd =E2=80=A6 rc 858741: warning: process exceeds 100 file descriptors I think the warning is from /sys/src/9/port/sysfile.c:21 . If I replace the asynchronous read with a simple input redirect, the fds are closed (i.e., replace <{echo -n} with