Lines Matching refs:pid
54 pid_t pid = fork();
55 bool isSuccess = pid >= 0;
60 if (pid == 0) {
64 int ret = waitpid(pid, &status, 0);
65 printf("child ret with pid:%d status:%d\n", ret, status);
83 pid_t pid = fork();
84 bool isSuccess = pid >= 0;
89 if (pid == 0) {
94 printf("child pid:%d\n", pid);
95 kill(pid, SIGKILL);
97 int ret = waitpid(pid, &status, 0);
98 printf("child ret with pid:%d status:%d\n", ret, status);