Lines Matching refs:pid
374 my $pid = open(HTML_PIPE, "-|");
377 if ($pid) { # parent
1728 my ($pid, $error_code) = @_;
1730 my $child_nick = $processes_hash{$pid};
1740 clear_from_child($pid);
1759 my $pid = 0;
1762 $pid = wait();
1764 $pid = waitpid( -1, &WNOHANG);
1766 if ($pid > 0) {
1767 $try_once_more = store_error($pid, $?);
1769 give_second_chance($pid);
1771 clear_from_child($pid);
1779 my $pid = shift;
1782 my $child_nick = $processes_hash{$pid};
1784 delete $processes_hash{$pid};
1789 my $pid = shift;
1790 my $child_nick = $processes_hash{$pid};
1799 delete ${$module_deps_hash_pids{$_}}{$pid} if defined (${$module_deps_hash_pids{$_}}{$pid});
1804 delete $processes_hash{$pid};
1813 my $pid = 0;
1871 my $pid = undef;
1875 if ($pid = fork) { # parent
1877 $processes_hash{$pid} = $job_dir;
1882 store_pid($dependencies_hash, $pid);
1884 } elsif (defined $pid) { # child
1893 my ($deps_hash, $pid) = @_;
1898 ${$module_deps_hash_pids{$deps_hash}}{$pid}++;
3380 my $pid = $client_hash{pid} . '@' . $client_host;
3392 if (store_error($pid, $client_hash{result})) {
3393 print $new_socket_obj $job_string_base . $clients_jobs{$pid};
3395 $clients_times{$pid} = time;
3399 delete $clients_times{$pid};
3400 clear_from_child($pid);
3401 delete $clients_jobs{$pid};
3420 $processes_hash{$pid} = $job_dir;
3421 $jobs_hash{$job_dir}->{CLIENT} = $pid;
3422 print "$pid got $job_dir\n";
3424 $clients_jobs{$pid} = $job_string;
3425 $clients_times{$pid} = time;