From owner-freebsd-bugs Tue Jan 30 15:40:13 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA19093 for bugs-outgoing; Tue, 30 Jan 1996 15:40:13 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA19033 Tue, 30 Jan 1996 15:39:36 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id KAA32757; Wed, 31 Jan 1996 10:33:37 +1100 Date: Wed, 31 Jan 1996 10:33:37 +1100 From: Bruce Evans Message-Id: <199601302333.KAA32757@godzilla.zeta.org.au> To: bugs@freebsd.org, gj@freebsd.org Subject: gdb forgets to close file descriptors for inferior Sender: owner-bugs@freebsd.org Precedence: bulk gdb in -current forgets to close file descriptors 3 and 4 before execing the inferior process. ftstat output: bde z 9495 3 / 885 -rwxr-xr-x 9725 r bde z 9495 4 / 885 -rwxr-xr-x 9725 r bde gdb 9494 3 / 885 -rwxr-xr-x 9725 r bde gdb 9494 4 / 885 -rwxr-xr-x 9725 r Here `z' is the binary being debugged and 885 is its inode. This usually doesn't matter, but having 2 fewer than the normal number of fd's available might caused the debugged process to behave abnormally, and certain regression tests fail. Bruce