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:
Yann Ylavic
2021-09-07 08:52:23 +00:00
parent fa99bd5bf6
commit 9e02e2000c

View File

@ -548,6 +548,7 @@ void main (int argc, char **argv)
exit (0);
} else if (pid == -1) {
perror ("fork");
accept_mutex_off ();
exit (1);
}
}
@ -555,6 +556,7 @@ void main (int argc, char **argv)
/* a quick test to see that nothing is screwed up */
if (*shared_counter != 0) {
puts ("WTF! shared_counter != 0 before the children have been started!");
accept_mutex_off ();
exit (1);
}