commit a9d3e0c

default  ·  2022-11-27 08:09:55 +0000 UTC
parent e8c487a
I was using fclose() instead of pclose(). What a moron.
1 files changed,  +1, -1
+1, -1
1@@ -1021,7 +1021,7 @@ void process_queue(snac *snac)
2             if ((f = popen("/usr/sbin/sendmail -t", "w")) != NULL) {
3                 fprintf(f, "%s\n", msg);
4 
5-                if (fclose(f) != EOF)
6+                if (pclose(f) != -1)
7                     ok = 1;
8             }
9