]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: test-smtp-payload - Rename test_server_kill() to test_server_kill_forced().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 5 Apr 2020 00:34:29 +0000 (02:34 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 25 May 2020 15:29:02 +0000 (17:29 +0200)
src/lib-smtp/test-smtp-payload.c

index e321fdd39aef8103519af6f0a40d332b20d89ac6..2a8bb3d19a6339de7e07449d2540c807714e4234 100644 (file)
@@ -854,7 +854,7 @@ static void test_open_server_fd(void)
        net_set_nonblock(fd_listen, TRUE);
 }
 
-static void test_server_kill(void)
+static void test_server_kill_forced(void)
 {
        if (server_pid != (pid_t)-1) {
                (void)kill(server_pid, SIGKILL);
@@ -919,7 +919,7 @@ test_run_client_server(
        test_client_deinit();
        io_loop_destroy(&ioloop);
        bind_port = 0;
-       test_server_kill();
+       test_server_kill_forced();
 
        test_files_deinit();
 }
@@ -1086,7 +1086,7 @@ static void test_signal_handler(const siginfo_t *si, void *context ATTR_UNUSED)
        terminating = 1;
 
        /* make sure we don't leave any pesky children alive */
-       test_server_kill();
+       test_server_kill_forced();
 
        (void)signal(signo, SIG_DFL);
        raise(signo);
@@ -1094,7 +1094,7 @@ static void test_signal_handler(const siginfo_t *si, void *context ATTR_UNUSED)
 
 static void test_atexit(void)
 {
-       test_server_kill();
+       test_server_kill_forced();
 }
 
 static void main_init(void)