/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)
|
D | main.py | 47 def __init__(self, pidfile, root, stdin="/dev/null", argument 49 super(Server, self).__init__(pidfile, stdin, stdout, stderr)
|
/external/selinux/policycoreutils/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() 234 if (pidfile) in main() 235 unlink(pidfile); in main()
|
/external/libvncserver/x11vnc/misc/ |
D | inet6to4 | 64 my $pidfile = ''; 74 unlink $pidfile if $pidfile; 88 $pidfile = $pf;
|
D | connect_switch | 108 my $pidfile = ''; 118 unlink $pidfile if $pidfile; 132 $pidfile = $pf;
|
D | ultravnc_repeater.pl | 85 my $pidfile = ''; 93 unlink $pidfile if $pidfile; 115 $pidfile = $pf;
|
/external/fio/ |
D | server.c | 1800 static int check_existing_pidfile(const char *pidfile) in check_existing_pidfile() argument 1807 if (stat(pidfile, &sb)) in check_existing_pidfile() 1810 f = fopen(pidfile, "r"); in check_existing_pidfile() 1827 static int write_pid(pid_t pid, const char *pidfile) in write_pid() argument 1831 fpid = fopen(pidfile, "w"); in write_pid() 1833 log_err("fio: failed opening pid file %s\n", pidfile); in write_pid() 1845 int fio_start_server(char *pidfile) in fio_start_server() argument 1855 if (!pidfile) in fio_start_server() 1858 if (check_existing_pidfile(pidfile)) { in fio_start_server() 1860 pidfile); in fio_start_server() [all …]
|
/external/toybox/lib/ |
D | xwrap.c | 583 char pidfile[256], spid[32]; in xpidfile() local 587 sprintf(pidfile, "/var/run/%s.pid", name); in xpidfile() 590 fd = open(pidfile, O_CREAT|O_EXCL|O_WRONLY, 0644); in xpidfile() 594 fd = open(pidfile, O_RDONLY); in xpidfile() 601 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/ppp/pppd/ |
D | main.c | 856 FILE *pidfile; local 860 if ((pidfile = fopen(pidfilename, "w")) != NULL) { 861 fprintf(pidfile, "%d\n", pid); 862 (void) fclose(pidfile); 875 FILE *pidfile; local 882 if ((pidfile = fopen(linkpidfile, "w")) != NULL) { 883 fprintf(pidfile, "%d\n", pid); 885 fprintf(pidfile, "%s\n", ifname); 886 (void) fclose(pidfile);
|
/external/dhcpcd/ |
D | dhcpcd.c | 106 static char *pidfile; variable 145 if ((fp = fopen(pidfile, "r")) == NULL) { in read_pid() 209 unlink(pidfile); in cleanup() 212 free(pidfile); in cleanup() 1894 pidfile = xmalloc(len); in main() 1896 snprintf(pidfile, len, PIDFILE, "-", argv[optind]); in main() 1898 snprintf(pidfile, len, PIDFILE, "", ""); in main() 1999 unlink(pidfile); in main() 2030 pid, pidfile); in main() 2041 pidfd = open(pidfile, O_WRONLY | O_CREAT | O_NONBLOCK, 0664); in main() [all …]
|
/external/toybox/toys/pending/ |
D | dhcpd.c | 152 char *pidfile; member 309 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local 310 if (pidfile > 0) { in write_pid() 314 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid() 315 close(pidfile); in write_pid() 548 …{"pidfile" , strinvar , (void*)&gconfig.pidfile , "/var/run/dhcpd.pid"}, //DPID_F… 1104 write_pid(gconfig.pidfile); in dhcpd_main() 1162 unlink(gconfig.pidfile); in dhcpd_main()
|
D | dhcp.c | 61 char *pidfile; 352 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local 353 if (pidfile > 0) { in write_pid() 357 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid() 358 close(pidfile); in write_pid() 1278 if (flag_chk(FLAG_p)) write_pid(TT.pidfile); in dhcp_main() 1356 if (flag_chk(FLAG_p)) write_pid(TT.pidfile); in dhcp_main() 1494 if (flag_chk(FLAG_p)) write_pid(TT.pidfile); in dhcp_main()
|
/external/iputils/doc/ |
D | ninfod.sgml | 18 <arg choice="opt">-p <replaceable/pidfile/</arg> 64 <term><option>-p <replaceable/pidfile/</option></term>
|
/external/dnsmasq/contrib/openvpn/ |
D | dnsmasq.patch | 11 # pidfile: /var/run/dnsmasq.pid
|
/external/dnsmasq/src/ |
D | dnsmasq.c | 339 FILE *pidfile; in main() local 342 if ((pidfile = fopen(daemon->runfile, "w"))) in main() 344 fprintf(pidfile, "%d\n", (int) getpid()); in main() 345 fclose(pidfile); in main()
|
/external/toybox/generated/ |
D | globals.h | 420 char *pidfile; member
|
/external/dnsmasq/ |
D | CHANGELOG | 399 capabilities and writing the pidfile. Thanks to Uwe
|
/external/selinux/libsepol/tests/policies/test-cond/ |
D | refpolicy-base.conf | 647 attribute pidfile; 866 type var_run_t, file_type, pidfile;
|
/external/dnsmasq/po/ |
D | fi.po | 1041 msgid "failed to open pidfile %s: %s"
|
D | it.po | 1041 msgid "failed to open pidfile %s: %s"
|
D | pt_BR.po | 1041 msgid "failed to open pidfile %s: %s"
|
D | de.po | 1084 msgid "failed to open pidfile %s: %s"
|
D | id.po | 1229 msgid "failed to open pidfile %s: %s"
|
D | no.po | 1071 msgid "failed to open pidfile %s: %s"
|