Changeset 2868 for trunk/src/kmk


Ignore:
Timestamp:
Sep 4, 2016, 3:28:12 AM (9 years ago)
Author:
bird
Message:

Only invalidate the PATH_OUT and TEMP in kWorker.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir-nt-bird.c

    r2862 r2868  
    114114                {
    115115                    PKFSOBJ pNameObj = kFsCacheLookupRelativeToDirA(g_pFsCache, (PKFSDIR)pDirObj,
    116                                                                     pszName, strlen(pszName), &enmError);
     116                                                                    pszName, strlen(pszName), &enmError, NULL);
    117117                    if (pNameObj)
    118118                    {
  • trunk/src/kmk/kmkbuiltin/kSubmit.c

    r2858 r2868  
    307307    size_t const    cbExecutableBuf = GET_PATH_MAX;
    308308    PATH_VAR(szExecutable);
     309#define TUPLE(a_sz)     a_sz, sizeof(a_sz) - 1
     310    struct variable *pVarVolatile = lookup_variable(TUPLE("PATH_OUT"));
     311    if (pVarVolatile)
     312    { /* likely */ }
     313    else
     314    {
     315        pVarVolatile = lookup_variable(TUPLE("PATH_OUT_BASE"));
     316        if (!pVarVolatile)
     317            warn("Neither PATH_OUT_BASE nor PATH_OUT was found.");
     318    }
    309319
    310320    /*
     
    373383                {
    374384                    char        szHandleArg[32];
    375                     const char *apszArgs[4] = { szExecutable, "--pipe", szHandleArg, NULL };
     385                    const char *apszArgs[6] =
     386                    {
     387                        szExecutable, "--pipe", szHandleArg,
     388                        pVarVolatile ? "--volatile" : NULL, pVarVolatile ? pVarVolatile->value : NULL,
     389                        NULL
     390                    };
    376391                    _snprintf(szHandleArg, sizeof(szHandleArg), "%p", hWorkerPipe);
    377392
Note: See TracChangeset for help on using the changeset viewer.