From: Marco Bettini Date: Wed, 18 Jan 2023 16:59:29 +0000 (+0000) Subject: lib-http: test_run_client_server() - Rearrange the reset/wait calls that sync test_ru... X-Git-Tag: 2.4.0~3184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb83bdfe26d60ab8240841ba1cea256b70b8c5b3;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test_run_client_server() - Rearrange the reset/wait calls that sync test_run_server() startup --- diff --git a/src/lib-http/test-http-client-errors.c b/src/lib-http/test-http-client-errors.c index 631a40ae76..7b1e29fa73 100644 --- a/src/lib-http/test-http-client-errors.c +++ b/src/lib-http/test-http-client-errors.c @@ -3847,7 +3847,6 @@ test_run_client_server(const struct http_client_settings *client_set, { unsigned int i; - test_subprocess_notify_signal_reset(SIGHUP); test_server_init = NULL; test_server_deinit = NULL; test_server_input = NULL; @@ -3868,10 +3867,10 @@ test_run_client_server(const struct http_client_settings *client_set, /* Fork server */ fd_listen = fds[i]; + test_subprocess_notify_signal_reset(SIGHUP); test_subprocess_fork(test_run_server, &data, FALSE); - i_close_fd(&fd_listen); test_subprocess_notify_signal_wait(SIGHUP, 10000); - test_subprocess_notify_signal_reset(SIGHUP); + i_close_fd(&fd_listen); } }