[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-bugs
Subject:    gdb forgets to close file descriptors for inferior
From:       Bruce Evans <bde () zeta ! org ! au>
Date:       1996-01-30 23:33:37
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic