From 9e02e2000cc05754a9c1c9a9aead7ce2cc8ea6ee Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Tue, 7 Sep 2021 08:52:23 +0000 Subject: [PATCH] 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 --- test/time-sem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/time-sem.c b/test/time-sem.c index 7bd0501ee5..60e5982677 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); }