From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Running two processes rapidly makes Emacs eat 100% CPU on w32 Date: Thu, 12 Oct 2006 06:47:19 -0400 Message-ID: References: <20061012102127.C37F.SLAWOMIR.NOWACZYK.847@student.lu.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1160650165 4587 80.91.229.2 (12 Oct 2006 10:49:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2006 10:49:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 12 12:49:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GXy7R-0005dW-G3 for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2006 12:48:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXy7Q-0001wX-QS for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2006 06:48:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GXy5x-0000BW-TN for emacs-devel@gnu.org; Thu, 12 Oct 2006 06:47:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GXy5w-00008a-Jm for emacs-devel@gnu.org; Thu, 12 Oct 2006 06:47:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXy5w-00007s-9v for emacs-devel@gnu.org; Thu, 12 Oct 2006 06:47:20 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GXyE8-0001ya-QZ for emacs-devel@gnu.org; Thu, 12 Oct 2006 06:55:48 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.34) id 1GXy5v-0001UH-BU; Thu, 12 Oct 2006 06:47:19 -0400 Original-To: Slawomir Nowaczyk In-reply-to: <20061012102127.C37F.SLAWOMIR.NOWACZYK.847@student.lu.se> (message from Slawomir Nowaczyk on Thu, 12 Oct 2006 10:44:48 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60644 Archived-At: > Date: Thu, 12 Oct 2006 10:44:48 +0200 > From: Slawomir Nowaczyk > > What is the best way to debug such problem? Try to figure out what happens inside w32proc.c:sys_select would be a beginning, I think. There are already quite a few DebPrint statements in that function; compiling with EMACSDEBUG defined will activate them. You should be able to see the strings emitted by DebPrint with any debugger; or you can install DbgView as a lightweight solution. Once you have this in place, add DebPrint as needed to see what is going on there. TIA