Lines Matching refs:pf
64 struct pidfh *pf; in test_pidfile_uncontested() local
68 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested()
69 if (pf == NULL && other != 0) in test_pidfile_uncontested()
71 if (pf == NULL) in test_pidfile_uncontested()
73 if (pidfile_write(pf) != 0) { in test_pidfile_uncontested()
74 pidfile_close(pf); in test_pidfile_uncontested()
78 pidfile_close(pf); in test_pidfile_uncontested()
130 struct pidfh *pf = NULL; in common_test_pidfile_child() local
142 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
143 if (pf == NULL && other != 0) in common_test_pidfile_child()
145 if (pf == NULL) in common_test_pidfile_child()
157 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
158 if (pf == NULL && other != 0) in common_test_pidfile_child()
160 if (pf == NULL) in common_test_pidfile_child()
163 if (pidfile_write(pf) != 0) { in common_test_pidfile_child()
165 pidfile_close(pf); in common_test_pidfile_child()
169 if (pf == NULL) in common_test_pidfile_child()
171 if (pidfile_write(pf) != 0) in common_test_pidfile_child()
190 if (pf) in common_test_pidfile_child()
191 pidfile_close(pf); in common_test_pidfile_child()
203 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
204 if (pf != NULL) { in common_test_pidfile_child()
205 pidfile_close(pf); in common_test_pidfile_child()
223 if (pf) in common_test_pidfile_child()
224 pidfile_close(pf); in common_test_pidfile_child()