mirror of
https://github.com/curl/curl.git
synced 2026-08-26 21:13:34 +03:00
improve synchronization between test harness runtests.pl script
and test harness servers to minimize risk of false test failures. http://curl.haxx.se/mail/lib-2008-04/0392.html
This commit is contained in:
parent
3783b455c0
commit
96edebf4d9
7 changed files with 132 additions and 7 deletions
|
|
@ -988,6 +988,8 @@ int main(int argc, char *argv[])
|
|||
break;
|
||||
}
|
||||
|
||||
set_advisor_read_lock(SERVERLOGS_LOCK);
|
||||
|
||||
#ifdef CURL_SWS_FORK_ENABLED
|
||||
if(use_fork) {
|
||||
/* The fork enabled version just forks off the child and don't care
|
||||
|
|
@ -1063,6 +1065,8 @@ int main(int argc, char *argv[])
|
|||
logmsg("====> Client disconnect");
|
||||
sclose(msgsock);
|
||||
|
||||
clear_advisor_read_lock(SERVERLOGS_LOCK);
|
||||
|
||||
if (req.testno == DOCNUMBER_QUIT)
|
||||
break;
|
||||
#ifdef CURL_SWS_FORK_ENABLED
|
||||
|
|
@ -1072,6 +1076,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
sclose(sock);
|
||||
|
||||
clear_advisor_read_lock(SERVERLOGS_LOCK);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue