mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 11:30:29 +00:00
Add some temporary logging statements
This commit is contained in:
parent
53c6edfd18
commit
f71f61cd40
3 changed files with 33 additions and 7 deletions
|
@ -68,6 +68,7 @@ textwindows void __undescribe_fds(int64_t hCreatorProcess,
|
|||
uint32_t dwExplicitHandleCount) {
|
||||
if (lpExplicitHandles) {
|
||||
for (uint32_t i = 0; i < dwExplicitHandleCount; ++i) {
|
||||
STRACE("close handle %lx %lx", hCreatorProcess, lpExplicitHandles[i]);
|
||||
DuplicateHandle(hCreatorProcess, lpExplicitHandles[i], 0, 0, 0, false,
|
||||
kNtDuplicateCloseSource);
|
||||
}
|
||||
|
@ -126,6 +127,7 @@ textwindows char *__describe_fds(const struct Fd *fds, size_t fdslen,
|
|||
for (uint32_t i = 0; i < 3; ++i)
|
||||
if (lpStartupInfo->stdiofds[i] == f->handle)
|
||||
lpStartupInfo->stdiofds[i] = handle;
|
||||
STRACE("added handle %lx", handle);
|
||||
handles[hi++] = handle;
|
||||
|
||||
// get shared memory handle for the file offset pointer
|
||||
|
@ -142,6 +144,7 @@ textwindows char *__describe_fds(const struct Fd *fds, size_t fdslen,
|
|||
__winerr();
|
||||
goto OnFailure;
|
||||
}
|
||||
STRACE("added handle %lx", shand);
|
||||
handles[hi++] = shand;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue