From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Redirecting standard output Date: Thu, 21 Apr 2011 17:15:49 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <83oc402ky4.fsf@gnu.org> <8362q73dap.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303398974 29785 80.91.229.12 (21 Apr 2011 15:16:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 15:16:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 17:16:10 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCvc0-0005q3-Cd for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 17:16:08 +0200 Original-Received: from localhost ([::1]:36325 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCvbz-0000vK-TJ for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 11:16:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCvbw-0000v4-8p for emacs-devel@gnu.org; Thu, 21 Apr 2011 11:16:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCvbv-0003jl-0z for emacs-devel@gnu.org; Thu, 21 Apr 2011 11:16:04 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCvbu-0003jZ-NZ for emacs-devel@gnu.org; Thu, 21 Apr 2011 11:16:02 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QCvbs-0005jm-RR for emacs-devel@gnu.org; Thu, 21 Apr 2011 17:16:00 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 17:16:00 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 17:16:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEUxFhUeBwd0UVApEA8l DAspE4YsAAACVUlEQVQ4jUVTgZEkIQhkFwM4SwPwrA+AOQhAC/KP6Rvdv3d23ClboIGGemCpNWs0 x/y3iKhH9V57rV3e8/05HyTU9xw1F7XfcyJ2anvOb5wLgN/79AjF7tegNyqTRroH4MQ1woCROj9K Y1ygknmsl+8e/uxX34h6HoR0IrXQotFL8LlPzEqsC685B9gOeh9XLHixsxfh/1xJv3KDnS2Wz/mY g6ktAAgku9M7r+btQSUyPCm7guz1TS+8JTQ5NCWti+YBlsEJCPLXCb5beqCkKOlcgzz9shE8sapp ERC3cBWh+ScNACMp5hDhglrAcI5QocGiSoKrroodyJyc5JiREbnQUmOxrwQG3QLgZ0oLEVzpFyBV gS8h3V3R5gTmsTAVYztA9LhA4WMBMIQ5gecCSAgRREvpi+HHl17A4QFZ4LYLW63N5QDDlZfCFR6k 75AgH+C7CsvKb5yK7RqNDlAr6gy2hqRZyl76GF3AUSRH4wEwumE7W5AydDODkTEvyCv8Zl7rg+/w hgDJwHZU1Js25AmZ4pYaAKxdPTOH/gta4+hSVtx0724NQN/9gR4cnOBG5XnQQ0uLHZBvN6gUlGU9 DSET6DX9GlDKCoEu1MAnxs4pDMmG5MFJG8urRXRtwnqVfo/zv1jyjezgoStHXQDmwOBU5IgiJ2Ne P6lLST1zRuqe5QDZdhROCcwX0hfDFGcl5QMQJgkIqjU0B0DpZ853TgT2yd22EgKFFP8AaAnAVxbl UIJZAmfEsH/3JKR3MK/FHb4/fVtKNGfsfe+ekXzPesVx6cz5F+oBi9vnuuFmAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Susanna's _Flower of Evil_: "Wild Is the Will" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:+5cxFat1pnaXR6UHcxdgRNZz4Bo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:138612 Archived-At: I've squashed a few more bugs, and all combinations of OUTPUT-BUFFER ERROR-FILE now seem to work. However, since if we're redirecting both STDOUT and STDERR to files, the way that `call-process' waits for the process to exit won't work. The normal way is to loop over a read from the process, and since we now no longer have any fds that we can read from, it falls through to the wait_for_termination (pid); So if you do this: (call-process "sleep" nil '((:file "/tmp/hello") "/tmp/error") nil "9") you can't interrupt the sub-process. That's obviously not acceptable. Is there an interruptible (is that a word?) version of that function that can be used? I've grepped a bit, but didn't see anything obvious... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/