Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 1996 10:33:37 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        bugs@freebsd.org, gj@freebsd.org
Subject:   gdb forgets to close file descriptors for inferior
Message-ID:  <199601302333.KAA32757@godzilla.zeta.org.au>

index | next in thread | raw e-mail

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



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601302333.KAA32757>