Lines Matching refs:pid
48 pid=$!
53 wait $pid
92 add_watch(pid_t pid)
98 kev.ident = pid;
112 "kevent - add watch for pid %u", pid);
125 pid_t pid;
149 pid = kev[i].ident;
151 add_watch(pid);
152 printf("%u - new process, parent %u\n", pid,
156 printf("%u forked\n", pid);
159 printf("%u called exec\n", pid);
162 printf("%u exited\n", pid);
163 if (parent == pid)
167 printf("%u forked - track\n", pid);
170 fprintf(stderr, "%u - track error\n", pid);
180 pid_t pid;
186 if ((pid = fork()) == -1)
188 if (pid == 0) {
192 if (waitpid(pid, NULL, 0) != pid)
193 err(1, "waitpid(%d):%d", pid, __LINE__);