From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: list-processes and process sentinels not run. Date: Sat, 30 Sep 2006 20:03:59 -0400 Message-ID: References: <871wptl7hq.fsf@escpc40.esc.rl.ac.uk> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1159661072 2803 80.91.229.2 (1 Oct 2006 00:04:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Oct 2006 00:04:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 01 02:04:30 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 1GToon-0005SS-TB for ged-emacs-devel@m.gmane.org; Sun, 01 Oct 2006 02:04:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GToon-0003xU-Ft for ged-emacs-devel@m.gmane.org; Sat, 30 Sep 2006 20:04:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTooL-0003ny-GI for emacs-devel@gnu.org; Sat, 30 Sep 2006 20:04:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTooK-0003nc-RF for emacs-devel@gnu.org; Sat, 30 Sep 2006 20:04:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTooK-0003nO-Gz for emacs-devel@gnu.org; Sat, 30 Sep 2006 20:04:00 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GToty-0002Oo-3V for emacs-devel@gnu.org; Sat, 30 Sep 2006 20:09:50 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GTooJ-0004rb-FO; Sat, 30 Sep 2006 20:03:59 -0400 Original-To: Matt Hodges In-reply-to: <871wptl7hq.fsf@escpc40.esc.rl.ac.uk> (message from Matt Hodges on Sat, 30 Sep 2006 16:05:53 +0100) 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:60343 Archived-At: If a process status changes to exit and list-processes is called without there being idle time, then the process is removed in list_processes_1: if (EQ (symbol, Qsignal) || EQ (symbol, Qexit)) remove_process (proc); and the process sentinel isn't run. We should change that code to run the sentinel if it needs to be run. Would someone please do that? This can be demonstrated with: (let ((proc (start-process "test-seq" nil "/bin/sleep" "0"))) (set-process-sentinel proc (lambda (proc msg) (message msg))) (while (delq nil (mapcar (lambda (p) (string-match "test-seq" (process-name p))) (process-list))) (list-processes)))