|
From: Nigel H. <nj...@ba...> - 2006-08-13 17:43:20
|
Paul Pluzhnikov wrote: > Nigel Horne wrote: > >> Since file descriptors are being tracked, it would be useful to warn of >> closing files that aren't open, perhaps --warn-close-fds=yes > > You don't need something as advanced as VG for this. > Simple "strace -etrace=close ./a.out 2>&1 | grep EBADF" will do. No it won't do, since it doesn't tell you where the errant close is, all you get is: close(15) = -1 EBADF (Bad file descriptor) -Nigel |