]> code.delx.au - gnu-emacs/blobdiff - src/process.c
(temp_output_buffer_setup): Use new type for overlays_(before|after).
[gnu-emacs] / src / process.c
index 9d7f145dcde9b75d04b658c8b6c2272854557440..8fac99570cc7405230ff2b6bec4fe2185bb571d4 100644 (file)
@@ -469,6 +469,7 @@ allocate_pty ()
     for (i = 0; i < 16; i++)
 #endif
       {
+       struct stat stb;        /* Used in some PTY_OPEN.  */
 #ifdef PTY_NAME_SPRINTF
        PTY_NAME_SPRINTF
 #else
@@ -479,7 +480,6 @@ allocate_pty ()
        PTY_OPEN;
 #else /* no PTY_OPEN */
        {
-         struct stat stb;
 # ifdef IRIS
          /* Unusual IRIS code */
          *ptyv = emacs_open ("/dev/ptc", O_RDWR | O_NDELAY, 0);
@@ -3495,12 +3495,7 @@ Return non-nil iff we received any output before the timeout expired.  */)
        seconds = -1;
     }
   else
-    {
-      if (NILP (process))
-       seconds = -1;
-      else
-       seconds = 0;
-    }
+    seconds = NILP (process) ? -1 : 0;
 
   if (NILP (process))
     XSETFASTINT (process, 0);
@@ -4168,7 +4163,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
         but select says there is input.  */
 
       if (XINT (read_kbd) && interrupt_input
-         && keyboard_bit_set (&Available))
+         && keyboard_bit_set (&Available) && ! noninteractive)
        kill (getpid (), SIGIO);
 #endif