Ignore:
Timestamp:
Mar 21, 2018, 10:37:41 PM (7 years ago)
Author:
bird
Message:

kmkbultin: environment fixes and stats.

File:
1 edited

Legend:

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

    r3172 r3173  
    25362536 * that completed children is the typical source of these tokens (esp. for kmk).
    25372537 *
    2538  * @returns Event handle.
     2538 * @returns Zero if completed children, event handle if waiting is required.
    25392539 */
    25402540intptr_t MkWinChildGetCompleteEventHandle(void)
    25412541{
    2542     return (intptr_t)g_hEvtWaitChildren;
     2542    /* We don't return the handle if we've got completed children.  This
     2543       is a safe guard against being called twice in a row without any
     2544       MkWinChildWait call inbetween. */
     2545    if (!g_pTailCompletedChildren)
     2546        return (intptr_t)g_hEvtWaitChildren;
     2547    return 0;
    25432548}
    25442549
Note: See TracChangeset for help on using the changeset viewer.