From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: call-process blocks the active thread Date: Fri, 08 Sep 2017 12:43:25 -0600 Message-ID: <87bmmldoaa.fsf@bapiya> References: <837ex9znba.fsf@gnu.org> <83k219xu58.fsf@gnu.org> <87lglpdva6.fsf@bapiya> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504896273 2943 195.159.176.226 (8 Sep 2017 18:44:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 18:44:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 20:44:26 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqOGE-0008H0-LD for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2017 20:44:15 +0200 Original-Received: from localhost ([::1]:46886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqOGK-0000eH-3Q for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2017 14:44:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqOFf-0000dx-P2 for emacs-devel@gnu.org; Fri, 08 Sep 2017 14:43:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqOFb-00022m-RK for emacs-devel@gnu.org; Fri, 08 Sep 2017 14:43:39 -0400 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:57588) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqOFb-00021c-IC for emacs-devel@gnu.org; Fri, 08 Sep 2017 14:43:35 -0400 Original-Received: from CMOut01 (unknown [10.0.90.82]) by gproxy5.mail.unifiedlayer.com (Postfix) with ESMTP id 0808714053D for ; Fri, 8 Sep 2017 12:43:31 -0600 (MDT) Original-Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id 76jT1w0062f2jeq016jWQL; Fri, 08 Sep 2017 12:43:31 -0600 X-Authority-Analysis: v=2.2 cv=fJ5J5dSe c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=2JCJgTwv5E4A:10 a=ddVZ1QKjJSsEHbg9pV8A:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Xg50AcOHZVnl8O8WcNibXFlEQUYhrwdBAAjYGCKpXwc=; b=qyRiRX7KN5JUWYeRs4YFsoYrML yp7BM0haKyvRHzuhNBDIvnnTz1jbQBQM6JYi0UG1oXdHpBb/oWmE9jqzNkD8Z295qLX8bHH0OggbI T56alPyRd3l5Q0niF5dZb963m; Original-Received: from 75-166-76-94.hlrn.qwest.net ([75.166.76.94]:37706 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1dqOFS-000srM-NF; Fri, 08 Sep 2017 12:43:26 -0600 In-Reply-To: <87lglpdva6.fsf@bapiya> (Tom Tromey's message of "Fri, 08 Sep 2017 10:12:17 -0600") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.76.94 X-Exim-ID: 1dqOFS-000srM-NF X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-76-94.hlrn.qwest.net (bapiya) [75.166.76.94]:37706 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.222.38.55 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:218026 Archived-At: Tom> Maybe the simplest idea is to rewrite call-process in Lisp, using Tom> make-process and accept-process-output. I gave this a try, and overall it looks pretty easy. However, I am going to have to add call-process -like "(:file ...)" handling to make-process. Tom