Fix asterisk exiting on verbose without a console (bug #1126)
authorJames Golovich <james@gnuinter.net>
Tue, 2 Mar 2004 23:36:53 +0000 (23:36 +0000)
committerJames Golovich <james@gnuinter.net>
Tue, 2 Mar 2004 23:36:53 +0000 (23:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2303 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index fb74d63..dd94333 100755 (executable)
@@ -588,7 +588,7 @@ static void console_verboser(const char *s, int pos, int replace, int complete)
        fflush(stdout);
        if (complete)
        /* Wake up a select()ing console */
-               if (consolethread != (pthread_t) -1)
+               if (option_console && consolethread != (pthread_t) -1)
                        pthread_kill(consolethread, SIGURG);
 }