From a9d3e0ca79543ab6d590000327ae399908b2c8cc Mon Sep 17 00:00:00 2001 From: default Date: Sun, 27 Nov 2022 09:09:55 +0100 Subject: [PATCH] I was using fclose() instead of pclose(). What a moron. --- activitypub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activitypub.c b/activitypub.c index 228aabe..28c8045 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1021,7 +1021,7 @@ void process_queue(snac *snac) if ((f = popen("/usr/sbin/sendmail -t", "w")) != NULL) { fprintf(f, "%s\n", msg); - if (fclose(f) != EOF) + if (pclose(f) != -1) ok = 1; }