Ignore:
Timestamp:
Feb 21, 2025, 3:31:23 PM (5 months ago)
Author:
bird
Message:

kmk: More debugging code for the mysterious 'kmk: write error: stdout' problem...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/w32/winchildren.c

    r3627 r3666  
    12871287    extern int          process_priority;
    12881288#endif
     1289#ifdef DEBUG_STDOUT_CLOSE_ISSUE
     1290    my_check_stdout("mkWinChildcareWorkerCreateProcess/entry");
     1291#endif
    12891292
    12901293    /*
     
    14501453    CloseHandle(ProcInfo.hThread);
    14511454    kmk_cache_exec_image_w(pwszImageName);
     1455#ifdef DEBUG_STDOUT_CLOSE_ISSUE
     1456    my_check_stdout("mkWinChildcareWorkerCreateProcess/tail");
     1457#endif
    14521458    return 0;
    14531459}
     
    35893595{
    35903596    PWINCHILD pChild;
     3597#ifdef DEBUG_STDOUT_CLOSE_ISSUE
     3598    my_check_stdout ("MkWinChildWait/entry");
     3599#endif
    35913600
    35923601    *pPid         = 0;
     
    36013610    {
    36023611        DWORD dwStatus = WaitForSingleObject(g_hEvtWaitChildren, INFINITE);
     3612#ifdef DEBUG_STDOUT_CLOSE_ISSUE
     3613        my_check_stdout ("MkWinChildWait/wakeup");
     3614#endif
    36033615        if (dwStatus == WAIT_FAILED)
    36043616            return (int)GetLastError();
     
    36413653    dir_cache_invalid_after_job();
    36423654#endif
     3655#ifdef DEBUG_STDOUT_CLOSE_ISSUE
     3656    my_check_stdout ("MkWinChildWait/tail");
     3657#endif
    36433658    return 0;
    36443659}
     
    36783693    WCHAR                  *pwszPathIgnored;
    36793694    int                     rc;
     3695#ifdef DEBUG_STDOUT_CLOSE_ISSUE
     3696    my_check_stdout("MkWinChildReExecMake/entry");
     3697#endif
    36803698
    36813699    /*
     
    37443762
    37453763        CloseHandle(ProcInfo.hProcess);
     3764#ifdef DEBUG_STDOUT_CLOSE_ISSUE
     3765        my_check_stdout("MkWinChildReExecMake/exit");
     3766#endif
    37463767        for (;;)
    37473768            exit(dwExitCode);
Note: See TracChangeset for help on using the changeset viewer.