emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does this code (in wait_reading_process_input) work?


From: Richard Stallman
Subject: Re: Does this code (in wait_reading_process_input) work?
Date: Tue, 19 Feb 2002 14:32:13 -0700 (MST)

          /* Don't wait for output from a non-running process.  */
          if (wait_proc != 0 && !NILP (wait_proc->raw_status_low))
            update_status (wait_proc);
          if (wait_proc != 0
              && ! EQ (wait_proc->status, Qrun))
            {
              int nread, total_nread = 0;
              ...


    As I read the code, it only enters the the conditional block if the
    process state *differs* from 'run - i.e. when it is non-running.

That is correct.

    That's the opposite of what the comment above the test says.

That code reads output but does not wait for it.  In fact, it ends
with `break;' which exits the main loop of wait_reading_process_input.
So the comment seems correct to me.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]