diff options
| author | 2022-11-30 17:10:35 -0600 | |
|---|---|---|
| committer | 2022-11-30 17:10:35 -0600 | |
| commit | 893634027f4bb13dd3ef34ef7a5d71e6af17f5c9 (patch) | |
| tree | 9bc198db7f44e3840ac0e3a41b1d29a69bd9f61e /activitypub.c | |
| parent | Version 2.12 RELEASED. (diff) | |
| download | snac2-893634027f4bb13dd3ef34ef7a5d71e6af17f5c9.tar.gz snac2-893634027f4bb13dd3ef34ef7a5d71e6af17f5c9.tar.xz snac2-893634027f4bb13dd3ef34ef7a5d71e6af17f5c9.zip | |
this is actually a pipe not a file, it should be closed as a pipe
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index bb091ff..5f26f73 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1017,10 +1017,10 @@ void process_queue(snac *snac) | |||
| 1017 | FILE *f; | 1017 | FILE *f; |
| 1018 | int ok = 0; | 1018 | int ok = 0; |
| 1019 | 1019 | ||
| 1020 | if ((f = popen("/usr/sbin/sendmail -t", "w")) != NULL) { | 1020 | f = popen("/usr/sbin/sendmail -t", "w"); |
| 1021 | if (f) { | ||
| 1021 | fprintf(f, "%s\n", msg); | 1022 | fprintf(f, "%s\n", msg); |
| 1022 | 1023 | if (pclose(f) != EOF) //this is a pipe stream not just a file | |
| 1023 | if (fclose(f) != EOF) | ||
| 1024 | ok = 1; | 1024 | ok = 1; |
| 1025 | } | 1025 | } |
| 1026 | 1026 | ||