]> diplodocus.org Git - nmh/blobdiff - sbr/push.c
Change this so the MTS_SMTP is the default, to match the value
[nmh] / sbr / push.c
index 39c58acc8a093888734c0653b1626f77c411e295..c4d0e40512d6578c5aef13e73da22b618b95e6d0 100644 (file)
@@ -40,8 +40,12 @@ push(void)
 
            unregister_for_removal(0);
 
-           freopen ("/dev/null", "r", stdin);
-           freopen ("/dev/null", "w", stdout);
+           if (freopen ("/dev/null", "r", stdin) == NULL) {
+               advise ("stdin", "freopen");
+            }
+           if (freopen ("/dev/null", "w", stdout) == NULL) {
+               advise ("stdout", "freopen");
+            }
            break;
 
        default: