Home
last modified time | relevance | path

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

1234

/external/curl/tests/
Dftp.pm39 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 …]
Druntests.pl412 my ($cmd, $pidfile, $timeout, $fake)=@_;
438 if(open(OUT, ">$pidfile")) {
441 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
444 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
456 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) {
710 my $pidfile = $serverpidfile{$server};
711 my $pid = processexists($pidfile);
716 unlink($pidfile) if(-f $pidfile);
948 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
950 if(open(FILE, "<$pidfile")) {
[all …]
Dsecureserver.pl60 my $pidfile; # stunnel pid file
156 $pidfile = "$path/". $ARGV[1];
175 if(!$pidfile) {
176 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
244 $cmd = "$stunnel -p $certfile -P $pidfile ";
252 print "pid file: $pidfile\n";
283 print STUNCONF "pid = $pidfile\n";
310 print "pid = $pidfile\n";
331 if(open(OUT, ">$pidfile")) {
Drtspserver.pl42 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\" ";
Dtftpserver.pl42 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\" ";
Dhttpserver.pl43 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\" ";
Dsshserver.pl91 my $pidfile; # ssh daemon pid file
147 $pidfile = "$path/". $ARGV[1];
177 if(!$pidfile) {
178 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
391 my $pidfile_config = $pidfile;
Dftpserver.pl94 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/
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)
/external/autotest/utils/
Dservice_helper.py6 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/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/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/test/functional/
Dtest_proxies.py41 self.pidfile = tempfile.mktemp()
46 'pidfile': self.pidfile,
63 pid = int(open(self.pidfile).read())
71 map(os.unlink, (self.pidfile,
/external/curl/tests/server/
Dutil.c253 FILE *pidfile; in write_pidfile() local
257 pidfile = fopen(filename, "wb"); in write_pidfile()
258 if(!pidfile) { in write_pidfile()
262 fprintf(pidfile, "%ld\n", pid); in write_pidfile()
263 fclose(pidfile); in write_pidfile()
/external/dbus/bus/
Dbus.c56 char *pidfile; member
280 const char *user, *pidfile; in process_config_first_time_only() local
290 pidfile = NULL; in process_config_first_time_only()
307 pidfile = bus_config_parser_get_pidfile (parser); in process_config_first_time_only()
309 if (pidfile != NULL) in process_config_first_time_only()
314 _dbus_string_init_const (&u, pidfile); in process_config_first_time_only()
336 pidfile); in process_config_first_time_only()
345 context->pidfile = _dbus_strdup (pidfile); in process_config_first_time_only()
860 if (context->pidfile) in bus_context_new()
861 _dbus_string_init_const (&u, context->pidfile); in bus_context_new()
[all …]
/external/toybox/toys/pending/
Ddhcp6.c46 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/
Ddhcpcd.c93 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/autotest/client/tests/kvmtest/
Dkvmtest.py88 for pidfile in utils.locate("*:*.pid", dirname):
89 pid = open(pidfile, 'r').readline().strip()
92 vncdisplay = os.path.basename(pidfile)\
/external/dbus/doc/
Dbusconfig.dtd6 pidfile |
23 <!ELEMENT pidfile (#PCDATA)> element
/external/dbus/dbus/
Ddbus-sysdeps-util-unix.c78 _dbus_become_daemon (const DBusString *pidfile, in _dbus_become_daemon() argument
142 if (!_dbus_write_pid_to_file_and_pipe (pidfile, print_pid_pipe, in _dbus_become_daemon()
230 _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile, in _dbus_write_pid_to_file_and_pipe() argument
235 if (pidfile) in _dbus_write_pid_to_file_and_pipe()
237 _dbus_verbose ("writing pid file %s\n", _dbus_string_get_const_data (pidfile)); in _dbus_write_pid_to_file_and_pipe()
238 if (!_dbus_write_pid_file (pidfile, in _dbus_write_pid_to_file_and_pipe()
Ddbus-sysdeps-util-win.c63 _dbus_become_daemon (const DBusString *pidfile, in _dbus_become_daemon() argument
167 _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile, in _dbus_write_pid_to_file_and_pipe() argument
172 if (pidfile) in _dbus_write_pid_to_file_and_pipe()
174 _dbus_verbose ("writing pid file %s\n", _dbus_string_get_const_data (pidfile)); in _dbus_write_pid_to_file_and_pipe()
175 if (!_dbus_write_pid_file (pidfile, in _dbus_write_pid_to_file_and_pipe()
/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/autotest/client/site_tests/security_Minijail0/src/
Dtest-pid-file9 read pid < pidfile
/external/toybox/lib/
Dxwrap.c639 char pidfile[256], spid[32]; in xpidfile() local
643 sprintf(pidfile, "/var/run/%s.pid", name); in xpidfile()
646 fd = open(pidfile, O_CREAT|O_EXCL|O_WRONLY, 0644); in xpidfile()
650 fd = open(pidfile, O_RDONLY); in xpidfile()
657 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);

1234