Lines Matching refs:pid
88 static OSErr ExecuteScript(char *script, pid_t *pid);
122 pid_t pid = 0;
248 OSErr err = ExecuteScript(scriptPath, &pid);
264 OSErr err = ExecuteScript(scriptPath, &pid);
286 static OSErr ExecuteScript (char *script, pid_t *pid)
291 if (! pid) pid = &p;
298 *pid = fork(); //open fork
300 if (*pid == (pid_t)-1) exit(13); //error
301 else if (*pid == 0) { //child process started
306 wpid = waitpid(*pid, &status, 0); //wait while child process finishes
459 if (! taskDone && pid) { //kill the script process brutally
460 kill(pid, 9);
461 printf("Inkscape.app: PID %d killed brutally\n", pid);