/external/curl/tests/ |
D | ftp.pm | 77 my $pidfile = $_[0]; 80 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) { 204 my $pidfile = $_[0]; 207 my $pid = pidfromfile($pidfile); 216 unlink($pidfile) if($pid == pidfromfile($pidfile)); 325 my $pidfile; 336 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum); 337 $pid = processexists($pidfile); 344 unlink($pidfile) if(-f $pidfile); 350 $pidfile = datasockf_pidfilename($proto, $ipvnum, $idnum); [all …]
|
D | runtests.pl | 472 my ($cmd, $pidfile, $timeout, $fake)=@_; 498 if(open(OUT, ">$pidfile")) { 501 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose); 504 logmsg "startnew: failed to write fake $pidfile with pid=$child\n"; 516 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) { 829 my $pidfile = $serverpidfile{$server}; 830 my $pid = processexists($pidfile); 835 unlink($pidfile) if(-f $pidfile); 1066 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum); 1068 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"; 339 if(open(OUT, ">$pidfile")) {
|
D | tftpserver.pl | 46 my $pidfile; 59 $pidfile = $ARGV[1]; 111 if(!$pidfile) { 112 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 118 $flags .= "--pidfile \"$pidfile\" ".
|
D | rtspserver.pl | 46 my $pidfile; # rtsp server pid file 58 $pidfile = $ARGV[1]; 110 if(!$pidfile) { 111 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 117 $flags .= "--pidfile \"$pidfile\" ".
|
D | httpserver.pl | 47 my $pidfile; # pid file 61 $pidfile = $ARGV[1]; 129 if(!$pidfile) { 130 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 139 $flags .= "--pidfile \"$pidfile\" ".
|
D | http2-server.pl | 27 my $pidfile = "log/nghttpx.pid"; 42 $pidfile = $ARGV[1]; 80 "--pid-file=$pidfile ".
|
D | sshserver.pl | 95 my $pidfile; # ssh daemon pid file 151 $pidfile = "$path/". $ARGV[1]; 173 if(!$pidfile) { 174 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 405 my $pidfile_config = $pidfile; 419 $pidfile_config = pathhelp::sys_native_abs_path($pidfile); 1120 if(open(OUT, ">$pidfile")) {
|
D | dictserver.py | 52 if options.pidfile: 57 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()
|
D | attach-p-cmd.h | 2 static const char pidfile[] = "attach-p-cmd.test-pid"; variable
|
/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()
|
D | attach-p-cmd.h | 2 static const char pidfile[] = "attach-p-cmd.test-pid"; variable
|
/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/toybox/toys/pending/ |
D | dhcp6.c | 46 char *interface_name, *pidfile, *script; 407 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local 409 if (pidfile > 0) { in write_pid() 413 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid() 414 close(pidfile); in write_pid() 480 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in lease_fail() 548 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main() 558 dbg("pid file: %s\n", TT.pidfile); in dhcp6_main() 668 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
|
D | cfgmatchlisten.sh | 6 pidfile=$OBJ/remote_pid 16 rm -f $pidfile
|
/external/libcups/scheduler/ |
D | main.c | 2045 char pidfile[1024]; /* PID/KeepAlive file */ in service_checkout() local 2058 strlcpy(pidfile, CUPS_KEEPALIVE, sizeof(pidfile)); in service_checkout() 2092 snprintf(pidfile, sizeof(pidfile), "%s/cupsd.pid", StateDir); in service_checkout() 2096 cupsdLogMessage(CUPSD_LOG_DEBUG, "Removing KeepAlive/PID file \"%s\".", pidfile); in service_checkout() 2098 unlink(pidfile); in service_checkout() 2102 cupsdLogMessage(CUPSD_LOG_DEBUG, "Creating KeepAlive/PID file \"%s\".", pidfile); in service_checkout() 2104 if ((fp = cupsFileOpen(pidfile, "w")) != NULL) in service_checkout() 2114 …cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create KeepAlive/PID file \"%s\": %s", pidfile, strerr… in service_checkout()
|
/external/curl/tests/server/ |
D | util.c | 274 FILE *pidfile; in write_pidfile() local 278 pidfile = fopen(filename, "wb"); in write_pidfile() 279 if(!pidfile) { in write_pidfile() 292 fprintf(pidfile, "%" CURL_FORMAT_CURL_OFF_T "\n", pid); in write_pidfile() 293 fclose(pidfile); in write_pidfile()
|