]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
xap_helper.h: fix non-assignable stderr case
authorEric Wong <e@80x24.org>
Fri, 1 Dec 2023 02:07:03 +0000 (02:07 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Dec 2023 21:12:13 +0000 (21:12 +0000)
I mixed up "flush" with "close" :x

Fixes: 87b7f633f241 (xap_helper: implement mset endpoint for WWW, IMAP, etc...)
lib/PublicInbox/xap_helper.h

index 1866556740bbf127e4a5998bfe24c6d8f15e2db4..c1ab66f3ba4a7221ee533e3f130813a53547b14a 100644 (file)
@@ -714,7 +714,7 @@ static void stderr_restore(FILE *tmp_err)
        stderr = orig_err;
        return;
 #endif
-       ERR_CLOSE(stderr, EXIT_FAILURE);
+       ERR_FLUSH(stderr);
        while (dup2(orig_err_fd, STDERR_FILENO) < 0) {
                if (errno != EINTR)
                        err(EXIT_FAILURE, "dup2(%d => 2)", orig_err_fd);