Lines Matching +full:parent +full:- +full:locked
1 /*-
2 * Copyright (c) 2007-2009 Dag-Erling Smørgrav
67 return ("pidfile exists and is locked"); in test_pidfile_uncontested()
94 return ("pidfile exists and is locked"); in test_pidfile_self()
141 return ("pidfile exists and is locked"); in common_test_pidfile_child()
147 if (pid == -1) in common_test_pidfile_child()
156 return ("pidfile exists and is locked"); in common_test_pidfile_child()
171 if (kq == -1) in common_test_pidfile_child()
177 /* Inform the parent we are ready to receive SIGINT */ in common_test_pidfile_child()
185 // parent in common_test_pidfile_child()
213 // Locked by the wrong process in common_test_pidfile_child()
225 if (waitpid(pid, &status, 0) == -1) in common_test_pidfile_child()
230 return ("child returned non-zero status"); in common_test_pidfile_child()
238 * is already locked, and that it returns the correct PID.
287 if (read(fd, pid, sizeof(pid) - 1) < 0) in test_pidfile_relative()
319 printf("not ok %d - %s # %s\n", i + 1, in main()
322 printf("ok %d - %s\n", i + 1, in main()