Lines Matching refs:command
149 /* forks a command and waits for it to finish */
150 int run_command(const char *title, int timeout_seconds, const char *command, ...) {
163 const char *args[1024] = {command};
167 va_start(ap, command);
168 if (title) printf("------ %s (%s", title, command);
177 execvp(command, (char**) args);
178 printf("*** exec(%s): %s\n", command, strerror(errno));
190 printf("*** %s: Killed by signal %d\n", command, WTERMSIG(status));
192 printf("*** %s: Exit code %d\n", command, WEXITSTATUS(status));
194 if (title) printf("[%s: %.1fs elapsed]\n\n", command, elapsed);
199 printf("*** %s: Timed out after %.1fs (killing pid %d)\n", command, elapsed, pid);