Juanma Barranquero <[EMAIL PROTECTED]> writes:

> (A question for process-savvy people)
>
> It seems like 
>
>>  (make-network-process :name "test" :server t :service t)
>
> on Windows makes the server process to call server_accept_connection()
> continuously (in a 2.8 GHz Pentium IV I've measured around 10,200
> calls in 3,5 s, almost 2,900 calls per second). It's no wonder Emacs
> is munching 50% CPU.
>
> Any idea why that can be happening?

Perhaps some unhandled error...  What does the following say
when executed in *scratch* buffer:

(progn
  (defun my-log (server client message)
    (setq mm (cons message mm)))
  (setq mm
    (make-network-process :name "test" :server t :service t :log 'my-log))
  (sleep-for 5)
  mm)

-- 
Kim F. Storm <[EMAIL PROTECTED]> http://www.cua.dk



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to