* 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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user