Commit ba44e0fd ba44e0fd197e71f4c9aac07c672fee9efb602ecc by Sergey Poznyakoff

(main): Improved check for debugging mode.

1 parent 295cefef
......@@ -113,7 +113,7 @@ main (int argc, char **argv)
pam_service = "gnu-imap4d";
#endif
if (isatty (0))
if (daemon_param.mode == MODE_INTERACTIVE && isatty (0))
{
/* If input is a tty, switch to debug mode */
debug_mode = 1;
......
......@@ -95,7 +95,7 @@ main (int argc, char **argv)
pam_service = (char *)"gnu-pop3d";
#endif
if (isatty (0))
if (daemon_param.mode == MODE_INTERACTIVE && isatty (0))
{
/* If input is a tty, switch to debug mode */
debug_mode = 1;
......