[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 100% CPU on TCP servers (on Windoze).

From: Juanma Barranquero
Subject: Re: 100% CPU on TCP servers (on Windoze).
Date: Fri, 14 Jul 2006 14:27:27 +0200

On 7/14/06, Kim F. Storm <address@hidden> wrote:

Any idea how to fix that?

You can make it work with the attached patch. Apparently,
WSAEventSelect is exported from ws2_32.dll but not from wsock32.dll. I
don't know whether all targets (I mean, all supported Windows
environments) have or use ws2_32.dll, though.

Unfortunately, with your patch and the attached one, I still see a 50%
CPU use on the reported example.


Index: src/w32.c
RCS file: /cvsroot/emacs/emacs/src/w32.c,v
retrieving revision 1.103
diff -u -2 -r1.103 w32.c
--- src/w32.c   14 Jul 2006 09:29:32 -0000      1.103
+++ src/w32.c   14 Jul 2006 12:22:29 -0000
@@ -2771,5 +2771,5 @@

-  winsock_lib = LoadLibrary ("wsock32.dll");
+  winsock_lib = LoadLibrary ("ws2_32.dll");

  if (winsock_lib != NULL)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]