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: Redirecting standard output Date: Thu, 21 Apr 2011 12:15:01 -0400 Message-ID: References: <83oc402ky4.fsf@gnu.org> <8362q73dap.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1303402520 20031 80.91.229.12 (21 Apr 2011 16:15:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 16:15:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 18:15:16 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCwX8-00084F-13 for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 18:15:10 +0200 Original-Received: from localhost ([::1]:52969 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwX7-0004nD-9v for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 12:15:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwX4-0004lf-9Y for emacs-devel@gnu.org; Thu, 21 Apr 2011 12:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCwX0-0007y2-6m for emacs-devel@gnu.org; Thu, 21 Apr 2011 12:15:06 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:34908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCwWz-0007xw-Rp for emacs-devel@gnu.org; Thu, 21 Apr 2011 12:15:02 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QCwWz-0005XA-MR for emacs-devel@gnu.org; Thu, 21 Apr 2011 12:15:01 -0400 In-reply-to: (message from Lars Magne Ingebrigtsen on Thu, 21 Apr 2011 17:46:17 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138614 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Thu, 21 Apr 2011 17:46:17 +0200 > > I added a interruptible_wait_for_termination function, which will > probably not work on NT, since I have no idea how to do that. It seems like the Windows version is already interruptible, see w32proc.c:sys_wait (wait_for_termination calls `wait' on Windows, but `wait' is a macro that resolves to sys_wait). It calls a Windows API that allows to specify a timeout, and we set that timeout to 1 sec. So Emacs on Windows checks for QUIT roughly once a second.