From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Zombie subprocesses Date: Sat, 24 Nov 2012 16:24:49 +0800 Message-ID: <871ufj1k8e.fsf@gnu.org> References: <20121123.224945.1073064997137716859.hanche@math.ntnu.no> <50AFF76C.1060101@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353745503 27451 80.91.229.3 (24 Nov 2012 08:25:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2012 08:25:03 +0000 (UTC) Cc: Harald Hanche-Olsen , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 24 09:25:15 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TcB31-00042v-6x for ged-emacs-devel@m.gmane.org; Sat, 24 Nov 2012 09:25:11 +0100 Original-Received: from localhost ([::1]:50879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcB2q-0007gl-CM for ged-emacs-devel@m.gmane.org; Sat, 24 Nov 2012 03:25:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcB2o-0007gV-0p for emacs-devel@gnu.org; Sat, 24 Nov 2012 03:24:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TcB2n-0007kQ-5T for emacs-devel@gnu.org; Sat, 24 Nov 2012 03:24:57 -0500 Original-Received: from mail-da0-f41.google.com ([209.85.210.41]:43304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcB2m-0007ip-Nc for emacs-devel@gnu.org; Sat, 24 Nov 2012 03:24:57 -0500 Original-Received: by mail-da0-f41.google.com with SMTP id e20so2883459dak.0 for ; Sat, 24 Nov 2012 00:24:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=aE099V80ekVyoAq2OsyK8nYfTTGAB6DE1zTL6tnQA5Q=; b=ocLuRnbkWe3ZbYLKzbr8Ymfq4y2o2Dyta3lKqZ+/h1BuIL9KwAruEDTqJuF3L8zpTS 7txesqnIXupJ2IBIBNoNJbovRwq8ERBlBq+pIfOlNELfaN29KC7AM3zOe/Ibw9ObrVJt 4n9ggKqURuErrSAmt/XCx9UX0lxPJUEG++IXL5w917eFAiQmbEjLAktN1DX7lYdGdMC9 mv0SY6PXy98tdgxryt91NZZJISWX+8UTGz5BpsZNNiyGbJNcvjmhrUXz9EUikY6d2YnC aVzn30AX1ZrE9gQvaEiMwW7D1QoWI8SJeN/uw0YYSzEvD0n9tvHn+R8VRv7wCQw9T0LD iF4w== Original-Received: by 10.69.1.9 with SMTP id bc9mr20549795pbd.61.1353745495940; Sat, 24 Nov 2012 00:24:55 -0800 (PST) Original-Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id uh9sm5162706pbc.5.2012.11.24.00.24.52 (version=SSLv3 cipher=OTHER); Sat, 24 Nov 2012 00:24:54 -0800 (PST) In-Reply-To: <50AFF76C.1060101@cs.ucla.edu> (Paul Eggert's message of "Fri, 23 Nov 2012 14:23:40 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.41 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:155052 Archived-At: Paul Eggert writes: >> (call-process "/bin/sleep" nil 0 nil "5") >> >> then this returns immediately, as expected, but after 5 seconds, the >> subprocess becomes a zombie and never goes away. > > It's a bug. Please file a bug report. Sigh, and I just put a change > into emacs-24 that may trigger the same bug. I'll try to look into > it later today, but I don't have easy access to OS X so this may > well require some help. I can reproduce this on GNU/Linux (x86_64-unknown-linux-gnu, latest emacs-24 and trunk). ps shows the process as "[sleep] ", which stays until Emacs exits. Emacs 24.2 does not have the same problem. If you are looking into it now, I can wait till I hear back from you before making the pretest.