From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#45198: 28.0.50; Sandbox mode Date: Sat, 19 Dec 2020 18:16:58 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8464"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Bastien , 45198@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 20 00:18:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqlUJ-00025X-NA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 00:18:11 +0100 Original-Received: from localhost ([::1]:48674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqlUI-0002By-81 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 18:18:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqlUA-0002Bo-4I for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 18:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqlU9-0002p2-Rs for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 18:18:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqlU9-00021O-MJ for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 18:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Dec 2020 23:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45198 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 45198-submit@debbugs.gnu.org id=B45198.16084198307705 (code B ref 45198); Sat, 19 Dec 2020 23:18:01 +0000 Original-Received: (at 45198) by debbugs.gnu.org; 19 Dec 2020 23:17:10 +0000 Original-Received: from localhost ([127.0.0.1]:43418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqlTK-00020D-5h for submit@debbugs.gnu.org; Sat, 19 Dec 2020 18:17:10 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:48160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqlTG-0001ze-49 for 45198@debbugs.gnu.org; Sat, 19 Dec 2020 18:17:09 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 96483100222; Sat, 19 Dec 2020 18:17:00 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 39273100068; Sat, 19 Dec 2020 18:16:59 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1608419819; bh=AH7bywzwbyb9BbkK+wxTbj8m1WSJh8UkUqV0RJfrwo8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Co7DBH9wjzDQRVM8gdL8nG94O2BTSQFFBMbgSK44tEOC93kjdNRjaA2CPS9Ze3l4G ebKum9kUbdIHAElHCUl/Fd83t5c7GkgMZpomXqwVt6/rsWXBCtQGgkDxWFGl8Vcpei O0fpKXz1otmzTroFEZSChyEHfqa2GzRIeBkiG5XATYuZKrkciYzJLxsEW2YxBDi7u6 W9UGCWV/ko3XNSFQ1Paq5uvRP1KogeuiivfmlSMFf7wlTSgM8b9gDFDZRE3LtHv6e/ /inlfOENkxDa0iB/ABTf6ukx2mMOQJu7BPdWAEoIWHtMHe6otN0Uvytt4LSwXJ2lvh rKMhlg+ytPXRg== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EA77412017E; Sat, 19 Dec 2020 18:16:58 -0500 (EST) In-Reply-To: (Philipp Stephani's message of "Sat, 19 Dec 2020 23:41:50 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196439 Archived-At: >> I think "the right thing" would be to represent the parent as a process >> object inside the child. I proposed dedicated functions only because >> but when it uses stdin/stdout, providing a process object seems awkward >> to implement. > What would be the difference? It would be a pipe process wrapping some > open file descriptor pair in both cases. Differences: 1- we don't have this pipe process wrapping of stdin/stdout so it's extra C code we currently don't have. 2- I suspect that it wouldn't be quite so easy because it may interfere with other preexisting uses of stdin/stdout in the C code. If/when someone implements that, then indeed we can just use a process object to represent the parent in the client as well. Stefan