summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-27 09:09:55 +0100
committerdefault <nobody@localhost>2022-11-27 09:09:55 +0100
commita9d3e0ca79543ab6d590000327ae399908b2c8cc (patch)
tree887b973f52c7e5bcc3b009fcba3cff7123914ba7 /activitypub.c
parente8c487add7487adcc8eee0b86c7d78bf94fb3311 (diff)
I was using fclose() instead of pclose(). What a moron.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
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;
}