Home
last modified time | relevance | path

Searched refs:pidfile (Results 1 - 22 of 22) sorted by relevance

/third_party/curl/tests/
H A Dservers.pm121 my %doesntrun; # servers that don't work, identified by pidfile
359 my ($cmd, $pidfile, $timeout, $fakepidfile)=@_;
387 if(open(my $out, ">", "$pidfile")) {
389 close($out) || die "Failure writing pidfile";
390 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
393 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
406 $pid2 = pidfromfile($pidfile);
409 # otherwise it is just likely to be the _previous_ pidfile or
503 my $pidfile = $serverpidfile{$server};
504 my $pid = processexists($pidfile);
[all...]
H A Dprocesshelp.pm90 # pidfromfile returns the pid stored in the given pidfile. The value
96 my $pidfile = $_[0];
99 if(-f $pidfile && -s $pidfile && open(my $pidfh, "<", "$pidfile")) {
215 # pidfile exists and is alive. This will return 0 on any file related
223 my $pidfile = $_[0];
225 # fetch pid from pidfile
226 my $pid = pidfromfile($pidfile);
234 # get rid of the certainly invalid pidfile
[all...]
H A Dsecureserver.pl66 my $pidfile; # stunnel pid file
156 elsif($ARGV[0] eq '--pidfile') {
158 $pidfile = "$path/". $ARGV[1];
183 if($pidfile) {
184 # Use our pidfile directory to store the conf files
185 $piddir = dirname($pidfile);
190 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
258 $cmd = "\"$stunnel\" -p $certfile -P $pidfile ";
266 print "pid file: $pidfile\n";
302 print $stunconf "pid = $pidfile\
[all...]
H A Ddictserver.py57 if options.pidfile:
62 with open(options.pidfile, "w") as f:
123 parser.add_argument("--pidfile", action="store",
193 if options.pidfile and os.path.isfile(options.pidfile):
194 os.unlink(options.pidfile)
H A Dsshserver.pl103 my $pidfile; # ssh daemon pid file
165 elsif($ARGV[0] eq '--pidfile') {
167 $pidfile = "$path/". $ARGV[1];
198 if($pidfile) {
199 # Use our pidfile directory to store server config files
200 $piddir = dirname($pidfile);
205 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
450 $pidfile_config = pathhelp::sys_native_abs_path($pidfile);
463 $pidfile_config = $pidfile;
1155 # Fake pidfile fo
[all...]
H A Dnegtelnetserver.py58 if options.pidfile:
63 with open(options.pidfile, "w") as f:
305 parser.add_argument("--pidfile", action="store",
377 if options.pidfile and os.path.isfile(options.pidfile):
378 os.unlink(options.pidfile)
H A Dsmbserver.py111 if options.pidfile:
116 with open(options.pidfile, "w") as f:
391 parser.add_argument("--pidfile", action="store",
450 if options.pidfile and os.path.isfile(options.pidfile):
451 os.unlink(options.pidfile)
H A Dftpserver.pl113 my $pidfile; # server pid file name
210 unlink($pidfile);
385 unlink($pidfile);
400 unlink($pidfile);
416 "--pidfile", $mainsockf_pidfile,
430 unlink($pidfile);
2499 "--pidfile", $datasockf_pidfile,
2721 "--pidfile", $datasockf_pidfile,
2980 # --pidfile # server pid file
3014 elsif($ARGV[0] eq '--pidfile') {
[all...]
/third_party/alsa-utils/alsactl/
H A Ddaemon.c274 static long read_pid_file(const char *pidfile) in read_pid_file() argument
279 fd = open(pidfile, O_RDONLY); in read_pid_file()
292 static int write_pid_file(const char *pidfile) in write_pid_file() argument
298 fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0600); in write_pid_file()
303 unlink(pidfile); in write_pid_file()
314 int state_daemon_kill(const char *pidfile, const char *cmd) in state_daemon_kill() argument
333 pid = read_pid_file(pidfile); in state_daemon_kill()
342 static int check_another_instance(const char *pidfile) in check_another_instance() argument
346 pid = read_pid_file(pidfile); in check_another_instance()
351 pid = read_pid_file(pidfile); in check_another_instance()
359 state_daemon(const char *file, const char *cardname, int period, const char *pidfile) state_daemon() argument
[all...]
H A Dalsactl.c244 char *pidfile = SYS_PIDFILE; in main() local
364 pidfile = optarg; in main()
459 res = state_daemon(cfgfile, cardname, period, pidfile); in main()
462 res = state_daemon_kill(pidfile, "rescan"); in main()
465 res = state_daemon(cfgfile, cardname, period, pidfile); in main()
467 res = state_daemon_kill(pidfile, cardname); in main()
H A Dalsactl.h67 const char *pidfile);
68 int state_daemon_kill(const char *pidfile, const char *cmd);
/third_party/nghttp2/contrib/
H A Dnghttpx-init.in49 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
51 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
69 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
/third_party/toybox/toys/pending/
H A Ddhcp6.c17 -p Create pidfile
46 char *interface_name, *pidfile, *script;
407 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local
409 if (pidfile > 0) { in write_pid()
413 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid()
414 close(pidfile); in write_pid()
480 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in lease_fail()
548 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main()
558 dbg("pid file: %s\n", TT.pidfile); in dhcp6_main()
668 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp6_main()
[all...]
H A Ddhcp.c19 -p Create pidfile
61 char *pidfile;
349 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local
350 if (pidfile > 0) { in write_pid()
354 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid()
355 close(pidfile); in write_pid()
1282 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp_main()
1360 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp_main()
1498 if (toys.optflags & FLAG_p) write_pid(TT.pidfile); in dhcp_main()
H A Ddhcpd.c260 char *pidfile; member
464 int pidfile = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0666); in write_pid() local
465 if (pidfile > 0) { in write_pid()
469 write(pidfile, pidbuf, strlen(pidbuf)); in write_pid()
470 close(pidfile); in write_pid()
703 {"pidfile" , strinvar , (void*)&gconfig.pidfile , "/var/run/dhcpd.pid"}, //DPID_FILE
1651 write_pid(gconfig.pidfile); in dhcpd_main()
1721 unlink(gconfig.pidfile); in dhcpd_main()
/third_party/lz4/tests/
H A Dtest-lz4-speed.py308 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)
/third_party/curl/tests/server/
H A Dutil.c297 FILE *pidfile; in write_pidfile() local
301 pidfile = fopen(filename, "wb"); in write_pidfile()
302 if(!pidfile) { in write_pidfile()
306 fprintf(pidfile, "%" CURL_FORMAT_CURL_OFF_T "\n", pid); in write_pidfile()
307 fclose(pidfile); in write_pidfile()
/third_party/toybox/lib/
H A Dxwrap.c784 char pidfile[256], spid[32]; in xpidfile() local
788 sprintf(pidfile, "/var/run/%s.pid", name); in xpidfile()
791 fd = open(pidfile, O_CREAT|O_EXCL|O_WRONLY, 0644); in xpidfile()
795 fd = open(pidfile, O_RDONLY); in xpidfile()
802 if (pid < 1 || (kill(pid, 0) && errno == ESRCH)) unlink(pidfile); in xpidfile()
/third_party/ltp/testcases/kernel/mce-test/kvm/host/
H A Dhost_run.sh247 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
259 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
/third_party/toybox/generated/
H A Dglobals.h690 char *pidfile; member
706 char *interface_name, *pidfile, *script; member
/third_party/backends/frontend/
H A Dsaned.c3199 FILE *pidfile; local
3228 pidfile = fopen (SANED_PID_FILE, "w");
3229 if (pidfile)
3231 fprintf (pidfile, "%d", getpid());
3232 fclose (pidfile);
/third_party/python/Lib/test/
H A Dtest_posix.py1573 pidfile = os_helper.TESTFN
1574 self.addCleanup(os_helper.unlink, pidfile)
1577 with open({pidfile!r}, "w") as pidfile:
1578 pidfile.write(str(os.getpid()))
1583 with open(pidfile, encoding="utf-8") as f:

Completed in 29 milliseconds