Home | History | Annotate | Download | only in tests

Lines Matching refs:pidfile

33 # pidfromfile returns the pid stored in the given pidfile.  The value
39 my $pidfile = $_[0];
42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
124 # pidfile exists and is alive. This will return 0 on any file related
132 my $pidfile = $_[0];
134 # fetch pid from pidfile
135 my $pid = pidfromfile($pidfile);
143 # get rid of the certainly invalid pidfile
144 unlink($pidfile) if($pid == pidfromfile($pidfile));
253 my $pidfile;
264 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
265 $pid = processexists($pidfile);
272 unlink($pidfile) if(-f $pidfile);
278 $pidfile = datasockf_pidfilename($proto, $ipvnum, $idnum);
279 $pid = processexists($pidfile);
286 unlink($pidfile) if(-f $pidfile);