mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
set CURL_MEMDEBUG to enable memory debugging in case curl is compiled
with it
This commit is contained in:
parent
aa5ff53bcf
commit
f1103b95cf
@ -74,6 +74,9 @@ my $pwd; # current working directory
|
|||||||
|
|
||||||
chomp($pwd = `pwd`);
|
chomp($pwd = `pwd`);
|
||||||
|
|
||||||
|
# enable memory debugging if curl is compiled with it
|
||||||
|
$ENV{'CURL_MEMDEBUG'} = 1;
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Return the pid of the server as found in the given pid file
|
# Return the pid of the server as found in the given pid file
|
||||||
#
|
#
|
||||||
@ -171,7 +174,7 @@ sub runhttpserver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($pid) {
|
if($pid > 0) {
|
||||||
my $res = kill (9, $pid); # die!
|
my $res = kill (9, $pid); # die!
|
||||||
if(!$res) {
|
if(!$res) {
|
||||||
print "Failed to kill our HTTP test server, do it manually and",
|
print "Failed to kill our HTTP test server, do it manually and",
|
||||||
|
Loading…
Reference in New Issue
Block a user