Remove timeout from loop in ghc-sync-process

This fixes the possibility that ghc-process-running was left non-nil
after timeout.
Quit still can abort the loop.
This commit is contained in:
Iku Iwasa 2014-11-26 23:34:20 +09:00
parent 44a38782d8
commit 7c4765bdef

View File

@ -112,8 +112,9 @@
(setq ghc-process-num-of-results (or n 1))
(let ((pro (ghc-with-process cmd 'ghc-process-callback nil hook)))
(condition-case nil
(while (and (null ghc-process-rendezvous)
(accept-process-output pro 2)))
(let ((inhibit-quit nil))
(while (null ghc-process-rendezvous)
(accept-process-output pro)))
(quit
(setq ghc-process-running nil))))
ghc-process-results))