Attempt to detect process status changes more reliably.
authorChris Hanson <org/chris-hanson/cph>
Thu, 9 Sep 1993 23:03:19 +0000 (23:03 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 9 Sep 1993 23:03:19 +0000 (23:03 +0000)
v7/src/microcode/uxio.c

index 7eede89b02d41baef6dc594df4fb01f8776a439f..5da3afdfb1d8b595573b48e4d1e50e1c3526336f 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: uxio.c,v 1.30 1993/09/01 20:21:58 gjr Exp $
+$Id: uxio.c,v 1.31 1993/09/09 23:03:19 cph Exp $
 
 Copyright (c) 1990-1993 Massachusetts Institute of Technology
 
@@ -431,13 +431,12 @@ DEFUN (UX_select_registry_test, (input_fds, blockp, output_fds, output_nfds),
   while (1)
     {
       SELECT_TYPE readable;
-      int status_change_p = 0;
       int nfds;
   
       readable = (* ((SELECT_TYPE *) input_fds));
       INTERRUPTABLE_EXTENT
        (nfds,
-        ((status_change_p = (UX_process_any_status_change ()))
+        ((UX_process_any_status_change ())
          ? ((errno = EINTR), (-1))
          : (UX_select (FD_SETSIZE,
                        (&readable),
@@ -471,7 +470,7 @@ DEFUN (UX_select_registry_test, (input_fds, blockp, output_fds, output_nfds),
        }
       else if (errno != EINTR)
        error_system_call (errno, syscall_select);
-      else if (status_change_p)
+      else if (UX_process_any_status_change ())
        return (select_input_process_status);
       if (pending_interrupts_p ())
        return (select_input_interrupt);