about summary refs log tree commit homepage
path: root/lib/PublicInbox/xap_helper.h
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-12-01 02:07:03 +0000
committerEric Wong <e@80x24.org>2023-12-01 21:12:13 +0000
commit2a71ffab935d66cf2a985bc1c01540e721ea72e8 (patch)
tree97f2f6911be867719609f5a5a726a820c0e62403 /lib/PublicInbox/xap_helper.h
parent203cae29ecacae348ba18447582ed7fd948aef61 (diff)
downloadpublic-inbox-2a71ffab935d66cf2a985bc1c01540e721ea72e8.tar.gz
I mixed up "flush" with "close" :x

Fixes: 87b7f633f241 (xap_helper: implement mset endpoint for WWW, IMAP, etc...)
Diffstat (limited to 'lib/PublicInbox/xap_helper.h')
-rw-r--r--lib/PublicInbox/xap_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/xap_helper.h b/lib/PublicInbox/xap_helper.h
index 18665567..c1ab66f3 100644
--- a/lib/PublicInbox/xap_helper.h
+++ b/lib/PublicInbox/xap_helper.h
@@ -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);