I was using fclose() instead of pclose(). What a moron.

This commit is contained in:
default 2022-11-27 09:09:55 +01:00
parent e8c487add7
commit a9d3e0ca79

View file

@ -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;
}