Lines Matching refs:token
337 static int wantToken; /* we want a token */
355 static Job tokenWaitJob; /* token wait pseudo-job */
463 * pipe when we're waiting for a job token, but we might lose the
464 * race for the token when a new one becomes available, so the read
521 * Sends a token on the child exit pipe to wake us up from
1415 * Pass job token pipe to submakes.
2128 /* The first fd in the list is the job token pipe */
2137 char token = 0;
2139 count = read(childExitJob.inPipe, &token, 1);
2142 Punt("unexpected eof on token pipe");
2144 Punt("token pipe read: %s", strerror(errno));
2146 if (token == DO_JOB_RESUME[0])
2870 * Put a token into the job pipe so that some make process can start
2887 tok = '+'; /* no error token */
2890 /* If we are depositing an error token flush everything else */
2895 fprintf(debug_file, "(%d) aborting %d, deposit token %c\n",
2904 * Prep the job token pipe in the root make process.
2933 * Preload the job pipe with one token per job, save the one
2934 * "extra" token for the primary job.
2947 * Return a withdrawn token to the pool.
2957 Punt("token botch");
2965 * Attempt to withdraw a token from the pool.
2968 * Returns TRUE if a token was withdrawn, and FALSE if the pool
2973 * when a token is released.
3001 fprintf(debug_file, "(%d) blocked for token\n", getpid());
3009 fprintf(debug_file, "(%d) aborted by token %c\n", getpid(), tok);
3019 /* We didn't want the token really */
3025 fprintf(debug_file, "(%d) withdrew token\n", getpid());