Lines Matching refs:pid

399     my $pid = $_[0];
400 if(not defined $pid || $pid <= 0) {
403 my $rc = waitpid($pid, &WNOHANG);
404 return ($rc == $pid)?1:0;
711 my $pid = processexists($pidfile);
712 if($pid > 0) {
714 killpid($verbose, $pid);
729 my $pid = 0;
789 $pid = 0+$1;
800 return $pid;
812 my $pid = 0;
846 $pid = 0+$1;
850 if($pid <= 0 && @data && $data[0]) {
864 return $pid;
876 my $pid = 0;
926 $pid = 0+$1;
937 return $pid;
949 my $pid = 0;
951 $pid=0+<FILE>;
954 if($pid > 0) {
957 if(!pidexists($pid)) {
959 checkdied($pid);
961 $pid = -1;
964 return $pid;
1014 my $pid = 0;
1065 $pid=0+<FILE>;
1067 if($pid > 0) {
1070 if(!pidexists($pid)) {
1072 checkdied($pid);
1074 $pid = -1;
1077 return $pid;
1088 return $pid;
1098 my $pid = 0;
1100 $pid=0+<FILE>;
1103 if($pid > 0) {
1106 if(!pidexists($pid)) {
1108 checkdied($pid);
1110 $pid = -1;
1113 return $pid;
1147 my $pid;
1152 $pid = &$fun($proto, $ipvnum, $idnum, $ip, $port);
1154 if($pid > 0) {
1157 elsif($pid < 0) {
1163 return $pid;
1176 my $pid = &$fun($proto, $ipvnum, $idnum, $ip, $port);
1179 if($pid > 0) {
1233 my $pid = processexists($pidfile);
1234 if($pid > 0) {
1235 stopserver($server, "$pid");
1315 my $pid = processexists($pidfile);
1316 if($pid > 0) {
1317 stopserver($server, "$pid");
1391 my $pid = processexists($pidfile);
1392 if($pid > 0) {
1393 stopserver($server, "$pid");
1475 my $pid = processexists($pidfile);
1476 if($pid > 0) {
1477 stopserver($server, "$pid");
1571 my $pid = processexists($pidfile);
1572 if($pid > 0) {
1573 stopserver($server, "$pid");
1649 my $pid = processexists($pidfile);
1650 if($pid > 0) {
1651 stopserver($server, "$pid");
1736 my $pid = processexists($pidfile);
1737 if($pid > 0) {
1738 stopserver($server, "$pid");
1817 my $pid = processexists($pidfile);
1818 if($pid > 0) {
1819 stopserver($server, "$pid");
1892 my $pid = processexists($pidfile);
1893 if($pid > 0) {
1894 stopserver($server, "$pid");
1990 my $pid = processexists($pidfile);
1991 if($pid > 0) {
1992 stopserver($server, "$pid");
3682 my $pid = processexists($pidfile);
3683 if($pid > 0) {
3685 killpid($verbose, $pid);
4112 foreach my $pid (split(' ', $pids)) {
4113 if($pid != $prev) {
4115 $server, $pid);
4116 $prev = $pid;
4131 my $pid = processexists($pidfile);
4132 if($pid > 0) {
4134 killpid($verbose, $pid);
4147 my ($pid, $pid2);
4167 ($pid, $pid2) = runpingpongserver($what, "", $verbose);
4168 if($pid <= 0) {
4171 printf ("* pid $what => %d %d\n", $pid, $pid2) if($verbose);
4172 $run{$what}="$pid $pid2";
4181 ($pid, $pid2) = runpingpongserver("ftp", "2", $verbose);
4182 if($pid <= 0) {
4185 printf ("* pid ftp2 => %d %d\n", $pid, $pid2) if($verbose);
4186 $run{'ftp2'}="$pid $pid2";
4195 ($pid, $pid2) = runpingpongserver("ftp", "", $verbose, "ipv6");
4196 if($pid <= 0) {
4199 logmsg sprintf("* pid ftp-ipv6 => %d %d\n", $pid,
4201 $run{'ftp-ipv6'}="$pid $pid2";
4210 ($pid, $pid2) = runhttpserver("gopher", $verbose, 0,
4212 if($pid <= 0) {
4215 logmsg sprintf ("* pid gopher => %d %d\n", $pid, $pid2)
4217 $run{'gopher'}="$pid $pid2";
4227 ($pid, $pid2) = runhttpserver("gopher", $verbose, "ipv6",
4229 if($pid <= 0) {
4232 logmsg sprintf("* pid gopher-ipv6 => %d %d\n", $pid,
4234 $run{'gopher-ipv6'}="$pid $pid2";
4243 ($pid, $pid2) = runhttpserver("http", $verbose, 0,
4245 if($pid <= 0) {
4248 logmsg sprintf ("* pid http => %d %d\n", $pid, $pid2)
4250 $run{'http'}="$pid $pid2";
4260 ($pid, $pid2) = runhttpserver("http", $verbose, "proxy",
4262 if($pid <= 0) {
4265 logmsg sprintf ("* pid http-proxy => %d %d\n", $pid, $pid2)
4267 $run{'http-proxy'}="$pid $pid2";
4276 ($pid, $pid2) = runhttpserver("http", $verbose, "ipv6",
4278 if($pid <= 0) {
4281 logmsg sprintf("* pid http-ipv6 => %d %d\n", $pid, $pid2)
4283 $run{'http-ipv6'}="$pid $pid2";
4293 ($pid, $pid2) = runhttpserver("http", $verbose, "pipe",
4295 if($pid <= 0) {
4298 logmsg sprintf ("* pid http-pipe => %d %d\n", $pid, $pid2)
4300 $run{'http-pipe'}="$pid $pid2";
4309 ($pid, $pid2) = runrtspserver($verbose);
4310 if($pid <= 0) {
4313 printf ("* pid rtsp => %d %d\n", $pid, $pid2) if($verbose);
4314 $run{'rtsp'}="$pid $pid2";
4323 ($pid, $pid2) = runrtspserver($verbose, "ipv6");
4324 if($pid <= 0) {
4327 logmsg sprintf("* pid rtsp-ipv6 => %d %d\n", $pid, $pid2)
4329 $run{'rtsp-ipv6'}="$pid $pid2";
4350 ($pid, $pid2) = runpingpongserver("ftp", "", $verbose);
4351 if($pid <= 0) {
4354 printf ("* pid ftp => %d %d\n", $pid, $pid2) if($verbose);
4355 $run{'ftp'}="$pid $pid2";
4358 ($pid, $pid2) = runftpsserver($verbose, "", $certfile);
4359 if($pid <= 0) {
4362 logmsg sprintf("* pid ftps => %d %d\n", $pid, $pid2)
4364 $run{'ftps'}="$pid $pid2";
4388 ($pid, $pid2) = runhttpserver("http", $verbose, 0,
4390 if($pid <= 0) {
4393 printf ("* pid http => %d %d\n", $pid, $pid2) if($verbose);
4394 $run{'http'}="$pid $pid2";
4397 ($pid, $pid2) = runhttpsserver($verbose, "", $certfile);
4398 if($pid <= 0) {
4401 logmsg sprintf("* pid https => %d %d\n", $pid, $pid2)
4403 $run{'https'}="$pid $pid2";
4416 ($pid, $pid2) = runhttptlsserver($verbose, "IPv4");
4417 if($pid <= 0) {
4420 logmsg sprintf("* pid httptls => %d %d\n", $pid, $pid2)
4422 $run{'httptls'}="$pid $pid2";
4435 ($pid, $pid2) = runhttptlsserver($verbose, "ipv6");
4436 if($pid <= 0) {
4439 logmsg sprintf("* pid httptls-ipv6 => %d %d\n", $pid, $pid2)
4441 $run{'httptls-ipv6'}="$pid $pid2";
4450 ($pid, $pid2) = runtftpserver("", $verbose);
4451 if($pid <= 0) {
4454 printf ("* pid tftp => %d %d\n", $pid, $pid2) if($verbose);
4455 $run{'tftp'}="$pid $pid2";
4464 ($pid, $pid2) = runtftpserver("", $verbose, "ipv6");
4465 if($pid <= 0) {
4468 printf("* pid tftp-ipv6 => %d %d\n", $pid, $pid2) if($verbose);
4469 $run{'tftp-ipv6'}="$pid $pid2";
4474 ($pid, $pid2) = runsshserver("", $verbose);
4475 if($pid <= 0) {
4478 printf ("* pid ssh => %d %d\n", $pid, $pid2) if($verbose);
4479 $run{'ssh'}="$pid $pid2";
4483 ($pid, $pid2) = runsocksserver("", $verbose);
4484 if($pid <= 0) {
4487 printf ("* pid socks => %d %d\n", $pid, $pid2) if($verbose);
4488 $run{'socks'}="$pid $pid2";
4515 ($pid, $pid2) = runhttpserver("http", $verbose, "unix",
4517 if($pid <= 0) {
4520 logmsg sprintf("* pid http-unix => %d %d\n", $pid, $pid2)
4522 $run{'http-unix'}="$pid $pid2";