Lines Matching refs:pf
62 struct pidfh *pf; in test_pidfile_uncontested() local
66 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested()
67 if (pf == NULL && other != 0) in test_pidfile_uncontested()
69 if (pf == NULL) in test_pidfile_uncontested()
71 if (pidfile_write(pf) != 0) { in test_pidfile_uncontested()
72 pidfile_close(pf); in test_pidfile_uncontested()
76 pidfile_close(pf); in test_pidfile_uncontested()
128 struct pidfh *pf = NULL; in common_test_pidfile_child() local
140 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
141 if (pf == NULL && other != 0) in common_test_pidfile_child()
143 if (pf == NULL) in common_test_pidfile_child()
155 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
156 if (pf == NULL && other != 0) in common_test_pidfile_child()
158 if (pf == NULL) in common_test_pidfile_child()
161 if (pidfile_write(pf) != 0) { in common_test_pidfile_child()
163 pidfile_close(pf); in common_test_pidfile_child()
167 if (pf == NULL) in common_test_pidfile_child()
169 if (pidfile_write(pf) != 0) in common_test_pidfile_child()
188 if (pf) in common_test_pidfile_child()
189 pidfile_close(pf); in common_test_pidfile_child()
201 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
202 if (pf != NULL) { in common_test_pidfile_child()
203 pidfile_close(pf); in common_test_pidfile_child()
221 if (pf) in common_test_pidfile_child()
222 pidfile_close(pf); in common_test_pidfile_child()