jl42+@andrew.cmu.edu (Jay Mathew Libove) (02/25/88)
Here is the fix I got for Micro Emacs 3.9e. The point is to convince the software that, when it is in "wait and see when a key is it" it should not burn 100% CPU... Rather a nuisance, burning 100% CPU. ----- Reason for change: When the USG (SysIII/V) option is selected, stdin is placed in polling mode without setting the flag to indicate that this has been done. This causes all input to be done in polling mode, making CPU time = the clock time. While this is not obvious on a single user system, on a large system it is not acceptable. This change sets the polling flag when polling mode is used. There was also some code to loop on input, caused by the polling flag error. I removed it. Changes to termio.c: 431,432c431 < while (read(0, &kbdq, 1) != 1) < ; --- > read(0, &kbdq, 1); 489a489 > kbdpoll = TRUE; -- Jay Libove Arpa: Jay.Libove@andrew.cmu.edu Bitnet: Jay.Libove@drycas.bitnet UUCP: ...!{uunet, ucbvax, harvard}!andrew.cmu.edu!Jay.Libove UUCP: ...!{pitt | bellcore} !darth!libove!libove