mirror of
https://github.com/apache/httpd.git
synced 2025-07-25 17:01:22 +00:00
test/time-sem.c: unlock the accept mutex before exiting (error conditions).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -548,6 +548,7 @@ void main (int argc, char **argv)
|
|||||||
exit (0);
|
exit (0);
|
||||||
} else if (pid == -1) {
|
} else if (pid == -1) {
|
||||||
perror ("fork");
|
perror ("fork");
|
||||||
|
accept_mutex_off ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -555,6 +556,7 @@ void main (int argc, char **argv)
|
|||||||
/* a quick test to see that nothing is screwed up */
|
/* a quick test to see that nothing is screwed up */
|
||||||
if (*shared_counter != 0) {
|
if (*shared_counter != 0) {
|
||||||
puts ("WTF! shared_counter != 0 before the children have been started!");
|
puts ("WTF! shared_counter != 0 before the children have been started!");
|
||||||
|
accept_mutex_off ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user