HomeSort by relevance Sort by last modified time
    Searched refs:pidfile (Results 1 - 25 of 47) sorted by null

1 2

  /external/strace/tests/
attach-p-cmd.h 2 static const char pidfile[] = "attach-p-cmd.test-pid"; variable
attach-p-cmd-p.c 61 FILE *fp = fopen(pidfile, "r");
63 perror_msg_and_fail("fopen: %s", pidfile);
67 perror_msg_and_fail("fscanf: %s", pidfile);
72 perror_msg_and_fail("fclose: %s", pidfile);
74 if (unlink(pidfile))
75 perror_msg_and_fail("unlink: %s", pidfile);
attach-p-cmd-cmd.c 40 FILE *fp = fopen(pidfile, "w");
42 perror_msg_and_fail("fopen: %s", pidfile);
45 perror_msg_and_fail("fprintf: %s", pidfile);
48 perror_msg_and_fail("fclose: %s", pidfile);
  /external/strace/tests-m32/
attach-p-cmd.h 2 static const char pidfile[] = "attach-p-cmd.test-pid"; variable
attach-p-cmd-p.c 61 FILE *fp = fopen(pidfile, "r");
63 perror_msg_and_fail("fopen: %s", pidfile);
67 perror_msg_and_fail("fscanf: %s", pidfile);
72 perror_msg_and_fail("fclose: %s", pidfile);
74 if (unlink(pidfile))
75 perror_msg_and_fail("unlink: %s", pidfile);
attach-p-cmd-cmd.c 40 FILE *fp = fopen(pidfile, "w");
42 perror_msg_and_fail("fopen: %s", pidfile);
45 perror_msg_and_fail("fprintf: %s", pidfile);
48 perror_msg_and_fail("fclose: %s", pidfile);
  /external/strace/tests-mx32/
attach-p-cmd.h 2 static const char pidfile[] = "attach-p-cmd.test-pid"; variable
attach-p-cmd-p.c 61 FILE *fp = fopen(pidfile, "r");
63 perror_msg_and_fail("fopen: %s", pidfile);
67 perror_msg_and_fail("fscanf: %s", pidfile);
72 perror_msg_and_fail("fclose: %s", pidfile);
74 if (unlink(pidfile))
75 perror_msg_and_fail("unlink: %s", pidfile);
attach-p-cmd-cmd.c 40 FILE *fp = fopen(pidfile, "w");
42 perror_msg_and_fail("fopen: %s", pidfile);
45 perror_msg_and_fail("fprintf: %s", pidfile);
48 perror_msg_and_fail("fclose: %s", pidfile);
  /external/autotest/client/site_tests/security_Minijail0/src/
test-pid-file 6 # args: -b /bin,/bin -b /lib,/lib -b /usr/lib,/usr/lib -b /usr/local,/usr/local -C "%T/c" -f "%T/c/pidfile"
9 read pid < pidfile
  /external/curl/tests/
ftp.pm 33 # pidfromfile returns the pid stored in the given pidfile. The value
39 my $pidfile = $_[0];
42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
124 # pidfile exists and is alive. This will return 0 on any file related
132 my $pidfile = $_[0];
134 # fetch pid from pidfile
135 my $pid = pidfromfile($pidfile);
143 # get rid of the certainly invalid pidfile
    [all...]
http2-server.pl 27 my $pidfile = "log/nghttpx.pid";
40 elsif($ARGV[0] eq '--pidfile') {
42 $pidfile = $ARGV[1];
80 "--pid-file=$pidfile ".
rtspserver.pl 42 my $pidfile; # rtsp server pid file
51 if($ARGV[0] eq '--pidfile') {
53 $pidfile = $ARGV[1];
99 if(!$pidfile) {
100 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
106 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
tftpserver.pl 42 my $pidfile; # tftp server pid file
52 if($ARGV[0] eq '--pidfile') {
54 $pidfile = $ARGV[1];
100 if(!$pidfile) {
101 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
107 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
httpserver.pl 43 my $pidfile; # http server pid file
54 if($ARGV[0] eq '--pidfile') {
56 $pidfile = $ARGV[1];
118 if(!$pidfile) {
119 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
125 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
runtests.pl 311 my %doesntrun; # servers that don't work, identified by pidfile
375 # Load serverpidfile hash with pidfile names for all possible servers.
426 my ($cmd, $pidfile, $timeout, $fake)=@_;
452 if(open(OUT, ">$pidfile")) {
455 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
458 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
470 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) {
475 # otherwise it is just likely to be the _previous_ pidfile o
    [all...]
secureserver.pl 62 my $pidfile; # stunnel pid file
156 elsif($ARGV[0] eq '--pidfile') {
158 $pidfile = "$path/". $ARGV[1];
177 if(!$pidfile) {
178 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
246 $cmd = "$stunnel -p $certfile -P $pidfile ";
254 print "pid file: $pidfile\n";
285 print STUNCONF "pid = $pidfile\n";
312 print "pid = $pidfile\n";
332 # Fake pidfile for tstunnel on Windows
    [all...]
dictserver.py 31 if options.pidfile:
33 with open(options.pidfile, "w") as f:
88 parser.add_argument("--pidfile", action="store",
  /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...]
  /external/wpa_supplicant_8/wpa_supplicant/examples/
udhcpd-p2p.conf 63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
  /external/selinux/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;
107 syslog(LOG_ERR, "Unable to write to pidfile (%s)", strerror(errno));
223 if (pidfile)
224 unlink(pidfile);
  /external/curl/tests/server/
util.c 262 FILE *pidfile; local
266 pidfile = fopen(filename, "wb");
267 if(!pidfile) {
271 fprintf(pidfile, "%ld\n", pid);
272 fclose(pidfile);
  /external/ltp/tools/pounder21/
run.c 48 static char *pidfile = ""; variable
79 unlink(pidfile);
119 pidfile = getenv("POUNDER_PIDFILE");
120 if (pidfile == NULL) {
121 pidfile = "pounder.pid";
124 fp = fopen(pidfile, "w");
126 perror(pidfile);
208 unlink(pidfile);
  /external/syslinux/gpxe/src/util/
hijack.c 534 char pidfile[16 + IF_NAMESIZE + 4]; /* "/var/run/hijack-<intf>.pid" */ local
548 snprintf ( pidfile, sizeof ( pidfile ), "/var/run/hijack-%s.pid",
550 fd = open ( pidfile, ( O_WRONLY | O_CREAT | O_TRUNC ),
554 pidfile, strerror ( errno ) );
562 pidfile, strerror ( errno ) );
  /external/dhcpcd-6.8.2/
dhcpcd.c 93 read_pid(const char *pidfile)
98 if ((fp = fopen(pidfile, "r")) == NULL) {
    [all...]

Completed in 142 milliseconds

1 2