From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Starting a subprocess in stopped state Date: Mon, 08 May 2017 19:46:46 +0300 Message-ID: <83bmr3cn49.fsf@gnu.org> References: <831ss7hyh0.fsf@gnu.org> <83tw4zg3rj.fsf@gnu.org> <87bmr6wngl.fsf@zigzag> <83bmr6fmch.fsf@gnu.org> <32a9c3d5-2fb1-b6ab-2521-15fae40f002d@lanl.gov> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1494262057 32128 195.159.176.226 (8 May 2017 16:47:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 May 2017 16:47:37 +0000 (UTC) Cc: ueno@gnu.org, emacs-devel@gnu.org To: Davis Herring Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 08 18:47:33 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 1d7lor-0008GU-0v for ged-emacs-devel@m.gmane.org; Mon, 08 May 2017 18:47:33 +0200 Original-Received: from localhost ([::1]:60468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7low-0005Dv-I7 for ged-emacs-devel@m.gmane.org; Mon, 08 May 2017 12:47:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7lol-0005BE-FX for emacs-devel@gnu.org; Mon, 08 May 2017 12:47:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7lok-0005wo-QM for emacs-devel@gnu.org; Mon, 08 May 2017 12:47:27 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7lof-0005qj-Dt; Mon, 08 May 2017 12:47:21 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1996 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d7loc-0006Xk-Ia; Mon, 08 May 2017 12:47:21 -0400 In-reply-to: <32a9c3d5-2fb1-b6ab-2521-15fae40f002d@lanl.gov> (message from Davis Herring on Mon, 8 May 2017 10:41:28 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:214698 Archived-At: > From: Davis Herring > Date: Mon, 8 May 2017 10:41:28 -0600 > Cc: Daiki Ueno > > > Also, not reading the Emacs end of the pipe, while the process runs is > > probably going to get is to undefined behavior in some situations, > > especially with multithreaded processes. > > I don't think it's undefined behavior -- you may just hang (one or more > threads of) the subprocess. Well, that's what I meant by "undefined" -- the exact result depends on factors beyond our control, some of them depend on the program being run, some on the OS and its configuration (like the size of the pipe buffer).