From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: delete-process bug Date: Fri, 02 Jun 2006 09:46:35 +0200 Message-ID: References: <87k69eyddj.fsf@lrde.org> <8764jrlewm.fsf@lrde.org> <87pshyqgtd.fsf@lrde.org> <87fyiuq9t5.fsf@lrde.org> <877j45rj3w.fsf@lrde.org> <87k684y4uz.fsf@lrde.org> <87u0774rak.fsf@lrde.org> <8764jna6ll.fsf@lrde.org> <8764jlyn2c.fsf@lrde.org> <87slmoyi70.fsf@lrde.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1149234554 9403 80.91.229.2 (2 Jun 2006 07:49:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jun 2006 07:49:14 +0000 (UTC) Cc: Agustin Martin , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 02 09:49:10 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 1Fm4P3-0005oI-Ti for ged-emacs-devel@m.gmane.org; Fri, 02 Jun 2006 09:49:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fm4P3-0004BB-79 for ged-emacs-devel@m.gmane.org; Fri, 02 Jun 2006 03:49:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fm4Oq-0004Aw-JS for emacs-devel@gnu.org; Fri, 02 Jun 2006 03:48:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fm4Oo-0004Ak-Q3 for emacs-devel@gnu.org; Fri, 02 Jun 2006 03:48:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fm4Oo-0004Ah-Ju for emacs-devel@gnu.org; Fri, 02 Jun 2006 03:48:50 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fm4VE-0000Ep-LK for emacs-devel@gnu.org; Fri, 02 Jun 2006 03:55:28 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id 7C97DA5004A; Fri, 2 Jun 2006 09:48:48 +0200 (CEST) Original-To: michael.cadilhac@lrde.org (=?utf-8?Q?Micha=C3=ABl?= Cadilhac) In-Reply-To: <87slmoyi70.fsf@lrde.org> (=?utf-8?Q?Micha=C3=ABl?= Cadilhac's message of "Thu, 01 Jun 2006 18:05:55 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:55602 Archived-At: michael.cadilhac@lrde.org (Micha=C3=ABl Cadilhac) writes: > Oh, well, just that the code in ispell I propose to change used is > following: > > (process-send-eof ispell-process) > (if (eq (ispell-process-status) 'run) > (ispell-accept-output 1)) > (if (eq (ispell-process-status) 'run) > (kill-process ispell-process)) > (while (not (or (eq (ispell-process-status) 'exit) > (eq (ispell-process-status) 'signal))) > (sleep-for 0.25))) > > So, was the timeout useful or at least meaningful in that case? Maybe as a safety valve in case the process didn't terminate after being fe= d the EOF. Using delete-process as you suggested seems much better, indeed. --=20 Kim F. Storm http://www.cua.dk