/external/v8/tools/testrunner/server/ |
daemon.py | 25 def __init__(self, pidfile, stdin='/dev/null', 30 self.pidfile = pidfile 73 # write pidfile 76 file(self.pidfile, 'w+').write("%s\n" % pid) 79 os.remove(self.pidfile) 85 # Check for a pidfile to see if the daemon already runs 87 pf = file(self.pidfile, 'r') 94 message = "pidfile %s already exist. Daemon already running?\n" 95 sys.stderr.write(message % self.pidfile) [all...] |
main.py | 47 def __init__(self, pidfile, root, stdin="/dev/null", 49 super(Server, self).__init__(pidfile, stdin, stdout, stderr)
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
udhcpd-p2p.conf | 63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
|
/external/selinux/policycoreutils/restorecond/ |
restorecond.c | 87 static const char *pidfile = "/var/run/restorecond.pid"; variable 97 pidfile = 0; 100 pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644); 102 syslog(LOG_ERR, "Unable to set pidfile (%s)", strerror(errno)); 103 pidfile = 0; 234 if (pidfile) 235 unlink(pidfile);
|
/external/libvncserver/x11vnc/misc/ |
inet6to4 | 64 my $pidfile = ''; 74 unlink $pidfile if $pidfile; 80 # pidfile: 88 $pidfile = $pf; 90 print STDERR "could not open pidfile: $pf - $! - continuing...\n";
|
connect_switch | 108 my $pidfile = ''; 118 unlink $pidfile if $pidfile; 124 # pidfile: 132 $pidfile = $pf; 134 print STDERR "could not open pidfile: $pf - $! - continuing...\n";
|
ultravnc_repeater.pl | 85 my $pidfile = ''; 93 unlink $pidfile if $pidfile; 107 # pidfile: 115 $pidfile = $pf; 117 lprint("could not open pidfile: $pf - $! - continuing...");
|
/external/fio/ |
server.c | [all...] |
/external/toybox/lib/ |
xwrap.c | 583 char pidfile[256], spid[32]; local 587 sprintf(pidfile, "/var/run/%s.pid", name); 590 fd = open(pidfile, O_CREAT|O_EXCL|O_WRONLY, 0644); 594 fd = open(pidfile, O_RDONLY); 601 if (pid < 1 || (kill(pid, 0) && errno == ESRCH)) unlink(pidfile);
|
/external/ppp/pppd/ |
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); [all...] |
/external/toybox/toys/pending/ |
dhcpd.c | 152 char *pidfile; member in struct:server_config_s 309 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); local 310 if (pidfile > 0) { 314 write(pidfile, pidbuf, strlen(pidbuf)); 315 close(pidfile); 548 {"pidfile" , strinvar , (void*)&gconfig.pidfile , "/var/run/dhcpd.pid"}, //DPID_FILE [all...] |
dhcp.c | 13 usage: dhcp [-fbnqvoCRB] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE] 19 -p Create pidfile 61 char *pidfile; 352 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); local 353 if (pidfile > 0) { 357 write(pidfile, pidbuf, strlen(pidbuf)); 358 close(pidfile); [all...] |
/external/dhcpcd/ |
dhcpcd.c | 106 static char *pidfile; variable 145 if ((fp = fopen(pidfile, "r")) == NULL) { 209 unlink(pidfile); 212 free(pidfile); [all...] |
/external/dnsmasq/src/ |
dnsmasq.c | 336 /* write pidfile _after_ forking ! */ 339 FILE *pidfile; local 342 if ((pidfile = fopen(daemon->runfile, "w"))) 344 fprintf(pidfile, "%d\n", (int) getpid()); 345 fclose(pidfile); 796 die(_("failed to open pidfile %s: %s"), daemon->runfile, EC_FILE); [all...] |
/external/toybox/generated/ |
globals.h | 420 char *pidfile; member in struct:dhcp_data
|
/external/selinux/libsepol/tests/policies/test-cond/ |
refpolicy-base.conf | 647 attribute pidfile; 866 type var_run_t, file_type, pidfile; [all...] |