/external/curl/tests/ |
D | ftp.pm | 39 my $pidfile = $_[0]; 42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) { 132 my $pidfile = $_[0]; 135 my $pid = pidfromfile($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); [all …]
|
D | runtests.pl | 427 my ($cmd, $pidfile, $timeout, $fake)=@_; 453 if(open(OUT, ">$pidfile")) { 456 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose); 459 logmsg "startnew: failed to write fake $pidfile with pid=$child\n"; 471 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) { 752 my $pidfile = $serverpidfile{$server}; 753 my $pid = processexists($pidfile); 758 unlink($pidfile) if(-f $pidfile); 989 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum); 991 if(open(FILE, "<$pidfile")) { [all …]
|
D | secureserver.pl | 62 my $pidfile; # stunnel pid file 158 $pidfile = "$path/". $ARGV[1]; 177 if(!$pidfile) { 178 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 246 $cmd = "$stunnel -p $certfile -P $pidfile "; 254 print "pid file: $pidfile\n"; 290 print STUNCONF "pid = $pidfile\n"; 317 print "pid = $pidfile\n"; 338 if(open(OUT, ">$pidfile")) {
|
D | rtspserver.pl | 42 my $pidfile; # rtsp server pid file 53 $pidfile = $ARGV[1]; 99 if(!$pidfile) { 100 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 106 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
D | tftpserver.pl | 42 my $pidfile; # tftp server pid file 54 $pidfile = $ARGV[1]; 100 if(!$pidfile) { 101 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 107 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
D | httpserver.pl | 43 my $pidfile; # http server pid file 56 $pidfile = $ARGV[1]; 118 if(!$pidfile) { 119 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 125 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
D | http2-server.pl | 27 my $pidfile = "log/nghttpx.pid"; 42 $pidfile = $ARGV[1]; 80 "--pid-file=$pidfile ".
|
D | sshserver.pl | 92 my $pidfile; # ssh daemon pid file 148 $pidfile = "$path/". $ARGV[1]; 178 if(!$pidfile) { 179 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 392 my $pidfile_config = $pidfile;
|
D | ftpserver.pl | 94 my $pidfile; # server pid file name 189 unlink($pidfile); 388 unlink($pidfile); 402 unlink($pidfile); 429 unlink($pidfile); 2899 $pidfile = $ARGV[1]; 2949 if(!$pidfile) { 2950 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 2981 open(PID, ">$pidfile"); 2985 logmsg("logged pid $$ in $pidfile\n"); [all …]
|
D | dictserver.py | 31 if options.pidfile: 33 with open(options.pidfile, "w") as f:
|
/external/strace/tests-mx32/ |
D | attach-p-cmd-p.c | 61 FILE *fp = fopen(pidfile, "r"); in wait_for_peer_termination() 63 perror_msg_and_fail("fopen: %s", pidfile); in wait_for_peer_termination() 67 perror_msg_and_fail("fscanf: %s", pidfile); in wait_for_peer_termination() 72 perror_msg_and_fail("fclose: %s", pidfile); in wait_for_peer_termination() 74 if (unlink(pidfile)) in wait_for_peer_termination() 75 perror_msg_and_fail("unlink: %s", pidfile); in wait_for_peer_termination()
|
D | attach-p-cmd-cmd.c | 40 FILE *fp = fopen(pidfile, "w"); in write_pidfile() 42 perror_msg_and_fail("fopen: %s", pidfile); in write_pidfile() 45 perror_msg_and_fail("fprintf: %s", pidfile); in write_pidfile() 48 perror_msg_and_fail("fclose: %s", pidfile); in write_pidfile()
|
D | attach-p-cmd.h | 2 static const char pidfile[] = "attach-p-cmd.test-pid"; variable
|
/external/strace/tests/ |
D | attach-p-cmd-p.c | 61 FILE *fp = fopen(pidfile, "r"); in wait_for_peer_termination() 63 perror_msg_and_fail("fopen: %s", pidfile); in wait_for_peer_termination() 67 perror_msg_and_fail("fscanf: %s", pidfile); in wait_for_peer_termination() 72 perror_msg_and_fail("fclose: %s", pidfile); in wait_for_peer_termination() 74 if (unlink(pidfile)) in wait_for_peer_termination() 75 perror_msg_and_fail("unlink: %s", pidfile); in wait_for_peer_termination()
|
D | attach-p-cmd-cmd.c | 40 FILE *fp = fopen(pidfile, "w"); in write_pidfile() 42 perror_msg_and_fail("fopen: %s", pidfile); in write_pidfile() 45 perror_msg_and_fail("fprintf: %s", pidfile); in write_pidfile() 48 perror_msg_and_fail("fclose: %s", pidfile); in write_pidfile()
|
/external/strace/tests-m32/ |
D | attach-p-cmd-p.c | 61 FILE *fp = fopen(pidfile, "r"); in wait_for_peer_termination() 63 perror_msg_and_fail("fopen: %s", pidfile); in wait_for_peer_termination() 67 perror_msg_and_fail("fscanf: %s", pidfile); in wait_for_peer_termination() 72 perror_msg_and_fail("fclose: %s", pidfile); in wait_for_peer_termination() 74 if (unlink(pidfile)) in wait_for_peer_termination() 75 perror_msg_and_fail("unlink: %s", pidfile); in wait_for_peer_termination()
|
D | attach-p-cmd-cmd.c | 40 FILE *fp = fopen(pidfile, "w"); in write_pidfile() 42 perror_msg_and_fail("fopen: %s", pidfile); in write_pidfile() 45 perror_msg_and_fail("fprintf: %s", pidfile); in write_pidfile() 48 perror_msg_and_fail("fclose: %s", pidfile); in write_pidfile()
|
/external/selinux/restorecond/ |
D | restorecond.c | 87 static const char *pidfile = "/run/restorecond.pid"; variable 97 pidfile = 0; in write_pid_file() 100 pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644); in write_pid_file() 103 pidfile = 0; in write_pid_file() 225 if (pidfile) in main() 226 unlink(pidfile); in main()
|
/external/python/httplib2/python2/httplib2/test/functional/ |
D | test_proxies.py | 40 self.pidfile = tempfile.mktemp() 46 "pidfile": self.pidfile, 64 pid = int(open(self.pidfile).read()) 72 map(os.unlink, (self.pidfile, self.logfile, self.conffile))
|
/external/syzkaller/pkg/osutil/ |
D | osutil_unix.go | 35 pidfile := filepath.Join(path, ".pid") 39 data, err := ioutil.ReadFile(pidfile) 44 if os.Remove(pidfile) == nil { 59 if err := WriteFile(pidfile, []byte(strconv.Itoa(syscall.Getpid()))); err != nil {
|
/external/curl/tests/server/ |
D | util.c | 262 FILE *pidfile; in write_pidfile() local 266 pidfile = fopen(filename, "wb"); in write_pidfile() 267 if(!pidfile) { in write_pidfile() 271 fprintf(pidfile, "%ld\n", pid); in write_pidfile() 272 fclose(pidfile); in write_pidfile()
|
/external/toybox/toys/pending/ |
D | dhcp6.c | 46 char *interface_name, *pidfile, *script; 410 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local 412 if (pidfile > 0) { in write_pid() 416 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid() 417 close(pidfile); in write_pid() 483 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in lease_fail() 551 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main() 561 dbg("pid file: %s\n", TT.pidfile); in dhcp6_main() 674 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main()
|
/external/openssh/regress/ |
D | cfgmatch.sh | 6 pidfile=$OBJ/remote_pid 15 rm -f $pidfile
|
/external/lz4/tests/ |
D | test-lz4-speed.py | 308 pidfile = "./speedTest.pid" variable 309 if os.path.isfile(pidfile): 310 log("ERROR: %s already exists, exiting" % pidfile) 314 with open(pidfile, 'w') as the_file: 349 os.unlink(pidfile)
|
/external/ppp/pppd/ |
D | main.c | 830 FILE *pidfile; local 834 if ((pidfile = fopen(pidfilename, "w")) != NULL) { 835 fprintf(pidfile, "%d\n", pid); 836 (void) fclose(pidfile); 849 FILE *pidfile; local 856 if ((pidfile = fopen(linkpidfile, "w")) != NULL) { 857 fprintf(pidfile, "%d\n", pid); 859 fprintf(pidfile, "%s\n", ifname); 860 (void) fclose(pidfile);
|