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: read_processs_output on closing network servers Date: Mon, 15 Aug 2005 10:46:02 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124098401 7996 80.91.229.2 (15 Aug 2005 09:33:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 09:33:21 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 15 11:33:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4bKE-0003me-R1 for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2005 11:32:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4bLs-00084I-DQ for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2005 05:33:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E4avB-0000pu-TS for emacs-devel@gnu.org; Mon, 15 Aug 2005 05:06:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E4asR-0000UD-F7 for emacs-devel@gnu.org; Mon, 15 Aug 2005 05:03:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4asO-00009F-E8 for emacs-devel@gnu.org; Mon, 15 Aug 2005 05:03:24 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E4ar7-0006Zp-Te for emacs-devel@gnu.org; Mon, 15 Aug 2005 05:02:06 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id BAE82262886; Mon, 15 Aug 2005 10:46:12 +0200 (CEST) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Wed, 10 Aug 2005 04:38:26 +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:42060 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42060 Juanma Barranquero writes: > Closing a datagram server hangs up Emacs (at least on Windows), on the > call to recvfrom() on read_process_output() (process.c ~ 4799). So it never returns from the recvfrom call? Is this actually the only time you see emacs hanging there? I would guess that if it can hang in that case, you can device other cases (combining more processes) that would make it hang there in case any process changes state... > > Now, I understand the need of calling status_notify() on closing a > server process (as any other process), but I'm not sure I understand > why status_notify() must in turn call read_process_output() while > *closing* network server processes. In what way is the network server process closed? I agree that using delete-process should not call read_process_output for the deleted process. I just installed a change to avoid that. -- Kim F. Storm http://www.cua.dk