Use (sit-for 0) in Tramp
* lisp/net/tramp.el (tramp-wait-for-regexp): Use (sit-for 0) in order to avoid performace regression.
This commit is contained in:
parent
f9fa75c1ef
commit
2f80e62e6e
1 changed files with 1 additions and 1 deletions
|
@ -6042,7 +6042,7 @@ nil."
|
|||
(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)
|
||||
(sit-for 0)
|
||||
(tramp-accept-process-output proc)
|
||||
(unless (process-live-p proc)
|
||||
(tramp-error-with-buffer
|
||||
|
|
Loading…
Add table
Reference in a new issue