Avoid 100% CPU load in Tramp
* lisp/net/tramp.el (tramp-wait-for-regexp): Add (sit-for 0.005) prior calling `tramp-accept-process-output'. This avoids 100% CPU load. (Bug#73046)
This commit is contained in:
parent
24c4bc108d
commit
652a8a0838
1 changed files with 2 additions and 0 deletions
|
@ -6041,6 +6041,8 @@ nil."
|
|||
(let ((found (tramp-check-for-regexp proc regexp)))
|
||||
(with-tramp-timeout (timeout)
|
||||
(while (not found)
|
||||
;; This is needed to yield the CPU, otherwise we'll see 100% CPU load.
|
||||
(sit-for 0.005)
|
||||
(tramp-accept-process-output proc)
|
||||
(unless (process-live-p proc)
|
||||
(tramp-error-with-buffer
|
||||
|
|
Loading…
Add table
Reference in a new issue