Home
last modified time | relevance | path

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

1234

/external/curl/tests/
Dftp.pm79 my $pidfile = $_[0];
82 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) {
206 my $pidfile = $_[0];
209 my $pid = pidfromfile($pidfile);
218 unlink($pidfile) if($pid == pidfromfile($pidfile));
327 my $pidfile;
338 $pidfile = mainsockf_pidfilename($proto, $ipvnum, $idnum);
339 $pid = processexists($pidfile);
346 unlink($pidfile) if(-f $pidfile);
352 $pidfile = datasockf_pidfilename($proto, $ipvnum, $idnum);
[all …]
Druntests.pl492 my ($cmd, $pidfile, $timeout, $fake)=@_;
521 if(open(OUT, ">$pidfile")) {
524 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
527 logmsg "startnew: failed to write fake $pidfile with pid=$child\n";
539 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) {
867 my $pidfile = $serverpidfile{$server};
868 my $pid = processexists($pidfile);
880 unlink($pidfile) if(-f $pidfile);
1129 my $pidfile = server_pidfilename($proto, $ipvnum, $idnum);
1131 if(open(FILE, "<$pidfile")) {
[all …]
Dsecureserver.pl64 my $pidfile; # stunnel pid file
160 $pidfile = "$path/". $ARGV[1];
179 if(!$pidfile) {
180 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
248 $cmd = "$stunnel -p $certfile -P $pidfile ";
256 print "pid file: $pidfile\n";
292 print STUNCONF "pid = $pidfile\n";
319 print "pid = $pidfile\n";
341 if(open(OUT, ">$pidfile")) {
Dtftpserver.pl48 my $pidfile;
61 $pidfile = $ARGV[1];
113 if(!$pidfile) {
114 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
120 $flags .= "--pidfile \"$pidfile\" ".
Drtspserver.pl48 my $pidfile; # rtsp server pid file
60 $pidfile = $ARGV[1];
112 if(!$pidfile) {
113 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
119 $flags .= "--pidfile \"$pidfile\" ".
Dhttp-server.pl49 my $pidfile; # pid file
63 $pidfile = $ARGV[1];
131 if(!$pidfile) {
132 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum);
141 $flags .= "--pidfile \"$pidfile\" ".
/external/strace/tests-mx32/
Dattach-p-cmd-p.c61 FILE *fp = fopen(pidfile, "r"); in wait_for_peer_termination()
63 perror_msg_and_fail("fopen: %s", pidfile); in wait_for_peer_termination()
67 perror_msg_and_fail("fscanf: %s", pidfile); in wait_for_peer_termination()
72 perror_msg_and_fail("fclose: %s", pidfile); in wait_for_peer_termination()
74 if (unlink(pidfile)) in wait_for_peer_termination()
75 perror_msg_and_fail("unlink: %s", pidfile); in wait_for_peer_termination()
Dattach-p-cmd-cmd.c40 FILE *fp = fopen(pidfile, "w"); in write_pidfile()
42 perror_msg_and_fail("fopen: %s", pidfile); in write_pidfile()
45 perror_msg_and_fail("fprintf: %s", pidfile); in write_pidfile()
48 perror_msg_and_fail("fclose: %s", pidfile); in write_pidfile()
/external/strace/tests/
Dattach-p-cmd-p.c61 FILE *fp = fopen(pidfile, "r"); in wait_for_peer_termination()
63 perror_msg_and_fail("fopen: %s", pidfile); in wait_for_peer_termination()
67 perror_msg_and_fail("fscanf: %s", pidfile); in wait_for_peer_termination()
72 perror_msg_and_fail("fclose: %s", pidfile); in wait_for_peer_termination()
74 if (unlink(pidfile)) in wait_for_peer_termination()
75 perror_msg_and_fail("unlink: %s", pidfile); in wait_for_peer_termination()
Dattach-p-cmd-cmd.c40 FILE *fp = fopen(pidfile, "w"); in write_pidfile()
42 perror_msg_and_fail("fopen: %s", pidfile); in write_pidfile()
45 perror_msg_and_fail("fprintf: %s", pidfile); in write_pidfile()
48 perror_msg_and_fail("fclose: %s", pidfile); in write_pidfile()
/external/strace/tests-m32/
Dattach-p-cmd-p.c61 FILE *fp = fopen(pidfile, "r"); in wait_for_peer_termination()
63 perror_msg_and_fail("fopen: %s", pidfile); in wait_for_peer_termination()
67 perror_msg_and_fail("fscanf: %s", pidfile); in wait_for_peer_termination()
72 perror_msg_and_fail("fclose: %s", pidfile); in wait_for_peer_termination()
74 if (unlink(pidfile)) in wait_for_peer_termination()
75 perror_msg_and_fail("unlink: %s", pidfile); in wait_for_peer_termination()
Dattach-p-cmd-cmd.c40 FILE *fp = fopen(pidfile, "w"); in write_pidfile()
42 perror_msg_and_fail("fopen: %s", pidfile); in write_pidfile()
45 perror_msg_and_fail("fprintf: %s", pidfile); in write_pidfile()
48 perror_msg_and_fail("fclose: %s", pidfile); in write_pidfile()
/external/selinux/restorecond/
Drestorecond.c87 static const char *pidfile = "/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()
225 if (pidfile) in main()
226 unlink(pidfile); in main()
/external/python/pyserial/examples/
Dport_publisher.sh18 $DAEMON --daemon --pidfile /var/run/$NAME.pid
23 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
29 start-stop-daemon --stop --quiet --pidfile \
33 $DAEMON --daemon --pidfile /var/run/$NAME.pid
/external/wmediumd/tests/
Ddiamond_fading.sh67 pidfile=/tmp/netns.pid.$i
69 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
72 while [[ ! -e $pidfile ]]; do
73 echo "Waiting for netns $i -- $pidfile"
77 tmux send-keys -t $session:0.0 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
Ddiamond_direction.sh76 pidfile=/tmp/netns.pid.$i
78 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
81 while [[ ! -e $pidfile ]]; do
82 echo "Waiting for netns $i -- $pidfile"
86 tmux send-keys -t $session:0.0 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
Ddiamond_log_distance.sh69 pidfile=/tmp/netns.pid.$i
71 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
74 while [[ ! -e $pidfile ]]; do
75 echo "Waiting for netns $i -- $pidfile"
79 tmux send-keys -t $session:0.0 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
Ddiamond_per_matrix.sh62 pidfile=/tmp/netns.pid.$i
64 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
67 while [[ ! -e $pidfile ]]; do
68 echo "Waiting for netns $i -- $pidfile"
72 tmux send-keys -t $session:0.0 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
Ddiamond_error_prob.sh64 pidfile=/tmp/netns.pid.$i
66 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
69 while [[ ! -e $pidfile ]]; do
70 echo "Waiting for netns $i -- $pidfile"
74 tmux send-keys -t $session:0.0 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
Dinterference.sh80 pidfile=/tmp/netns.pid.$i
82 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
85 while [[ ! -e $pidfile ]]; do
86 echo "Waiting for netns $i -- $pidfile"
90 tmux send-keys -t $session:0.0 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
Dn-linear-mesh.sh53 pidfile=/tmp/netns.pid.$i
55 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
58 while [[ ! -e $pidfile ]]; do
59 echo "Waiting for netns $i -- $pidfile"
63 tmux send-keys -t $session:0.0 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
Ddiamond.sh70 pidfile=/tmp/netns.pid.$i
73 tmux send-keys -t $win 'echo $$ > '$pidfile C-m
76 while [[ ! -e $pidfile ]]; do
77 echo "Waiting for netns $i -- $pidfile"
82 'iw phy '$phy' set netns `cat '$pidfile'`' C-m
/external/ot-br-posix/tools/reference_device/
Dtestharness-discovery.init.in65 --pidfile $PIDFILE --make-pidfile \
74 --pidfile $PIDFILE --remove-pidfile
/external/ot-br-posix/src/web/
Dotbr-web.init.in71 --pidfile $PIDFILE --make-pidfile \
80 --pidfile $PIDFILE --remove-pidfile
/external/ot-br-posix/src/agent/
Dotbr-agent.init.in71 --pidfile $PIDFILE --make-pidfile \
80 --pidfile $PIDFILE --remove-pidfile

1234