From: Yann Ylavic Date: Tue, 7 Sep 2021 08:52:23 +0000 (+0000) Subject: test/time-sem.c: unlock the accept mutex before exiting (error conditions). X-Git-Tag: 2.5.0-alpha2-ci-test-only~829 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e02e2000cc05754a9c1c9a9aead7ce2cc8ea6ee;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/test/time-sem.c b/test/time-sem.c index 7bd0501ee5c..60e59826773 100644 --- a/test/time-sem.c +++ b/test/time-sem.c @@ -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); }