* dtable.cc (dtable::dup2): Add some debugging. Use methods from passed in

class rather than cygheap->fdtab.
* fhandler_socket.cc (fhandler_socket::fixup_before_fork_exec): Add more
debugging output.
(fhandler_socket::dup): Allocate new space for prot_info_ptr for duplicated
entry.
* syscalls.cc (stat_worker): Always delete fh if it has been created.
This commit is contained in:
Christopher Faylor
2001-10-30 07:43:46 +00:00
parent 3d4b75dec2
commit 19ba6f2195
4 changed files with 27 additions and 13 deletions

View File

@@ -1026,10 +1026,11 @@ stat_worker (const char *name, struct stat *buf, int nofollow, path_conv *pc)
pc, (DWORD) real_path);
memset (buf, 0, sizeof (struct stat));
res = fh->fstat (buf, pc);
delete fh;
}
done:
if (fh)
delete fh;
MALLOC_CHECK;
syscall_printf ("%d = (%s, %p)", res, name, buf);
return res;