/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 | 417 my ($cmd, $pidfile, $timeout, $fake)=@_; 443 if(open(OUT, ">$pidfile")) { 446 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose); 449 logmsg "startnew: failed to write fake $pidfile with pid=$child\n"; 461 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) { 715 my $pidfile = $serverpidfile{$server}; 716 my $pid = processexists($pidfile); 721 unlink($pidfile) if(-f $pidfile); 953 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum); 955 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"; 285 print STUNCONF "pid = $pidfile\n"; 312 print "pid = $pidfile\n"; 333 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"; 41 $pidfile = $ARGV[1]; 72 "--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 190 unlink($pidfile); 389 unlink($pidfile); 403 unlink($pidfile); 430 unlink($pidfile); 2896 $pidfile = $ARGV[1]; 2946 if(!$pidfile) { 2947 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 2978 open(PID, ">$pidfile"); 2982 logmsg("logged pid $$ in $pidfile\n"); [all …]
|
/external/v8/tools/testrunner/server/ |
D | daemon.py | 25 def __init__(self, pidfile, stdin='/dev/null', argument 30 self.pidfile = pidfile 76 file(self.pidfile, 'w+').write("%s\n" % pid) 79 os.remove(self.pidfile) 87 pf = file(self.pidfile, 'r') 95 sys.stderr.write(message % self.pidfile) 108 pf = file(self.pidfile, 'r') 116 sys.stderr.write(message % self.pidfile) 130 if os.path.exists(self.pidfile): 131 os.remove(self.pidfile)
|
/external/autotest/utils/ |
D | service_helper.py | 6 def stop_service(pidfile): argument 14 pidfh = open(pidfile) 19 def start_service(cmd, pidfile, logfile=os.devnull, chdir=None): argument 29 pidfh = open(pidfile, 'w') 119 if not options.pidfile: 126 start_service(args, options.pidfile, options.logfile, options.chdir) 128 stop_service(options.pidfile)
|
/external/selinux/restorecond/ |
D | restorecond.c | 87 static const char *pidfile = "/var/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() 218 if (pidfile) in main() 219 unlink(pidfile); in main()
|
/external/curl/tests/server/ |
D | util.c | 252 FILE *pidfile; in write_pidfile() local 256 pidfile = fopen(filename, "wb"); in write_pidfile() 257 if(!pidfile) { in write_pidfile() 261 fprintf(pidfile, "%ld\n", pid); in write_pidfile() 262 fclose(pidfile); in write_pidfile()
|
/external/ltp/tools/pounder21/ |
D | run.c | 48 static char *pidfile = ""; variable 79 unlink(pidfile); in jump_out() 119 pidfile = getenv("POUNDER_PIDFILE"); in record_pid() 120 if (pidfile == NULL) { in record_pid() 121 pidfile = "pounder.pid"; in record_pid() 124 fp = fopen(pidfile, "w"); in record_pid() 126 perror(pidfile); in record_pid() 208 unlink(pidfile); in main()
|
/external/openssh/regress/ |
D | cfgmatch.sh | 6 pidfile=$OBJ/remote_pid 15 rm -f $pidfile
|
/external/syslinux/gpxe/src/util/ |
D | hijack.c | 534 char pidfile[16 + IF_NAMESIZE + 4]; /* "/var/run/hijack-<intf>.pid" */ in daemonise() local 548 snprintf ( pidfile, sizeof ( pidfile ), "/var/run/hijack-%s.pid", in daemonise() 550 fd = open ( pidfile, ( O_WRONLY | O_CREAT | O_TRUNC ), in daemonise() 554 pidfile, strerror ( errno ) ); in daemonise() 562 pidfile, strerror ( errno ) ); in daemonise()
|
/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/dhcpcd-6.8.2/ |
D | dhcpcd.c | 93 read_pid(const char *pidfile) in read_pid() argument 98 if ((fp = fopen(pidfile, "r")) == NULL) { in read_pid() 1634 snprintf(ctx.pidfile, sizeof(ctx.pidfile), in main() 1637 snprintf(ctx.pidfile, sizeof(ctx.pidfile), in main() 1675 strlcpy(ctx.pidfile, argv[optind], sizeof(ctx.pidfile)); in main() 1679 if (ctx.pidfile[strlen(ctx.pidfile) - 1] == '6') in main() 1739 pid = read_pid(ctx.pidfile); in main() 1750 unlink(ctx.pidfile); in main() 1765 if (read_pid(ctx.pidfile) == 0) in main() 1774 if ((pid = read_pid(ctx.pidfile)) > 0 && in main() [all …]
|
/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/autotest/client/site_tests/security_Minijail0/src/ |
D | test-pid-file | 9 read pid < pidfile
|
/external/toybox/lib/ |
D | xwrap.c | 711 char pidfile[256], spid[32]; in xpidfile() local 715 sprintf(pidfile, "/var/run/%s.pid", name); in xpidfile() 718 fd = open(pidfile, O_CREAT|O_EXCL|O_WRONLY, 0644); in xpidfile() 722 fd = open(pidfile, O_RDONLY); in xpidfile() 729 if (pid < 1 || (kill(pid, 0) && errno == ESRCH)) unlink(pidfile); in xpidfile()
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
D | udhcpd-p2p.conf | 63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
|
/external/fio/ |
D | server.c | 2463 static int check_existing_pidfile(const char *pidfile) in check_existing_pidfile() argument 2470 if (stat(pidfile, &sb)) in check_existing_pidfile() 2473 f = fopen(pidfile, "r"); in check_existing_pidfile() 2490 static int write_pid(pid_t pid, const char *pidfile) in write_pid() argument 2494 fpid = fopen(pidfile, "w"); in write_pid() 2496 log_err("fio: failed opening pid file %s\n", pidfile); in write_pid() 2508 int fio_start_server(char *pidfile) in fio_start_server() argument 2518 if (!pidfile) in fio_start_server() 2521 if (check_existing_pidfile(pidfile)) { in fio_start_server() 2523 pidfile); in fio_start_server() [all …]
|
/external/ppp/pppd/ |
D | main.c | 853 FILE *pidfile; local 857 if ((pidfile = fopen(pidfilename, "w")) != NULL) { 858 fprintf(pidfile, "%d\n", pid); 859 (void) fclose(pidfile); 872 FILE *pidfile; local 879 if ((pidfile = fopen(linkpidfile, "w")) != NULL) { 880 fprintf(pidfile, "%d\n", pid); 882 fprintf(pidfile, "%s\n", ifname); 883 (void) fclose(pidfile);
|
/external/iputils/doc/ |
D | ninfod.sgml | 18 <arg choice="opt">-p <replaceable/pidfile/</arg> 64 <term><option>-p <replaceable/pidfile/</option></term>
|