Home
last modified time | relevance | path

Searched refs:pidfile (Results 1 – 25 of 43) sorted by relevance

12

/external/v8/tools/testrunner/server/
Ddaemon.py25 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)
Dmain.py47 def __init__(self, pidfile, root, stdin="/dev/null", argument
49 super(Server, self).__init__(pidfile, stdin, stdout, stderr)
/external/selinux/policycoreutils/restorecond/
Drestorecond.c87 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/
Dinet6to464 my $pidfile = '';
74 unlink $pidfile if $pidfile;
88 $pidfile = $pf;
Dconnect_switch108 my $pidfile = '';
118 unlink $pidfile if $pidfile;
132 $pidfile = $pf;
Dultravnc_repeater.pl85 my $pidfile = '';
93 unlink $pidfile if $pidfile;
115 $pidfile = $pf;
/external/fio/
Dserver.c1800 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/
Dxwrap.c583 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/
Dudhcpd-p2p.conf63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
/external/ppp/pppd/
Dmain.c856 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/
Ddhcpcd.c106 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/
Ddhcpd.c152 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()
Ddhcp.c61 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/
Dninfod.sgml18 <arg choice="opt">-p <replaceable/pidfile/</arg>
64 <term><option>-p <replaceable/pidfile/</option></term>
/external/dnsmasq/contrib/openvpn/
Ddnsmasq.patch11 # pidfile: /var/run/dnsmasq.pid
/external/dnsmasq/src/
Ddnsmasq.c339 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/
Dglobals.h420 char *pidfile; member
/external/dnsmasq/
DCHANGELOG399 capabilities and writing the pidfile. Thanks to Uwe
/external/selinux/libsepol/tests/policies/test-cond/
Drefpolicy-base.conf647 attribute pidfile;
866 type var_run_t, file_type, pidfile;
/external/dnsmasq/po/
Dfi.po1041 msgid "failed to open pidfile %s: %s"
Dit.po1041 msgid "failed to open pidfile %s: %s"
Dpt_BR.po1041 msgid "failed to open pidfile %s: %s"
Dde.po1084 msgid "failed to open pidfile %s: %s"
Did.po1229 msgid "failed to open pidfile %s: %s"
Dno.po1071 msgid "failed to open pidfile %s: %s"

12