need fmt also
[unix-history] / usr / src / usr.bin / mail / lex.c
index 6c7f331..3081a4d 100644 (file)
@@ -8,7 +8,7 @@
  * Lexical processing of commands.
  */
 
  * Lexical processing of commands.
  */
 
-static char *SccsId = "@(#)lex.c       2.11 %G%";
+static char *SccsId = "@(#)lex.c       2.13 %G%";
 
 char   *prompt = "& ";
 
 
 char   *prompt = "& ";
 
@@ -121,12 +121,13 @@ commands()
                eofloop = 0;
 top:
                if (shudprompt) {
                eofloop = 0;
 top:
                if (shudprompt) {
+                       printf(prompt);
+                       flush();
 # ifdef VMUNIX
                        sigset(SIGCONT, contin);
 # endif VMUNIX
 # ifdef VMUNIX
                        sigset(SIGCONT, contin);
 # endif VMUNIX
-                       printf(prompt);
-               }
-               flush();
+               } else
+                       flush();
                sreset();
 
                /*
                sreset();
 
                /*
@@ -522,9 +523,7 @@ stop(s)
        }
        clrbuf(stdout);
        printf("Interrupt\n");
        }
        clrbuf(stdout);
        printf("Interrupt\n");
-# ifdef VMUNIX
-       sigrelse(s);
-# else
+# ifndef VMUNIX
        signal(s, stop);
 # endif
        reset(0);
        signal(s, stop);
 # endif
        reset(0);