1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

now reports the CORRECT pid on demand

This commit is contained in:
Daniel Stenberg 2001-10-24 11:39:15 +00:00
parent c6822f5a7f
commit f933cb3b75

View File

@ -39,6 +39,8 @@ open(PID, ">.http.pid");
print PID $$; print PID $$;
close(PID); close(PID);
my $PID=$$;
my $waitedpid = 0; my $waitedpid = 0;
my $paddr; my $paddr;
@ -119,7 +121,7 @@ for ( $waitedpid = 0;
elsif($path =~ /verifiedserver/) { elsif($path =~ /verifiedserver/) {
# this is a hard-coded query-string for the test script # this is a hard-coded query-string for the test script
# to verify that this is the server actually running! # to verify that this is the server actually running!
print "HTTP/1.1 999 WE ROOLZ: $$\r\n"; print "HTTP/1.1 999 WE ROOLZ: $PID\r\n";
exit; exit;
} }
else { else {