From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 2c79a8f 2/2: Use posix_spawn if possible. Date: Sat, 29 Jan 2022 10:26:22 +0200 Message-ID: <83sft7aqxd.fsf@gnu.org> References: <7CFD5E28-8266-4004-BF66-255146D72722@gnu.org> <83r18whunp.fsf@gnu.org> <36bbd45c-0a87-13b7-1589-afe943329e20@fastmail.com> <83ee4whqpf.fsf@gnu.org> <87v8y33hu1.fsf@rfc20.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28887"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sauliusmenkevicius@fastmail.com, p.stephani2@gmail.com, alan@idiocy.org, mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org To: Matt Armstrong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 29 09:31:18 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nDj8g-0007IT-QK for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jan 2022 09:31:18 +0100 Original-Received: from localhost ([::1]:50678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDj8f-0003uz-Tc for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jan 2022 03:31:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDj4A-0002n7-Su for emacs-devel@gnu.org; Sat, 29 Jan 2022 03:26:38 -0500 Original-Received: from [2001:470:142:3::e] (port=42042 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDj47-0007C2-DN; Sat, 29 Jan 2022 03:26:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Yh98cjmDpXaouudyaUdzfrcAdABM6OKAzT5eqr0sNqA=; b=Rbl/cDUTDfhE 9JXrFLGVqXDB966Gkq4doboK9UA++8dDykrU5LYJuTKOUwo8dQRf6UNgyP7dnPSR5WOLMAyYaddua Y7PSC43YVtDWv5vv4zluC09YPFwIWNkkbfcCDZctGcpRv1Q4Z8EuYHHgPG1gTMNMsc8gwn8Sca/F4 2LTT9UueKCNyn4mTaZVDJhL0waChcIdbqv0rNZRuIuNETfmpbsMSHQ+BU6HeNV3jPXEFrG8WToG6q D83zO4ISepEdfdaAkKJ/eIo5/Zjkx567BbMlEjBYkhCZp0wAVKPVP/hMW7p/7dkaiG0btqLYwX+Ne AQNpbwjoHBJkniOwXXOCsA==; Original-Received: from [87.69.77.57] (port=4895 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDj44-0002NO-Jo; Sat, 29 Jan 2022 03:26:34 -0500 In-Reply-To: <87v8y33hu1.fsf@rfc20.org> (message from Matt Armstrong on Fri, 28 Jan 2022 09:12:22 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:285539 Archived-At: > From: Matt Armstrong > Cc: p.stephani2@gmail.com, alan@idiocy.org, mituharu@math.s.chiba-u.ac.jp, > emacs-devel@gnu.org > Date: Fri, 28 Jan 2022 09:12:22 -0800 > > Eli Zaretskii writes: > > >> To actually figure that out I would need to build a minimal test fixture > >> for this bug/issue and submit to dotnet/runtime repo on github for them > >> to check and/or fix it. > > > > I think there's no way around this. We need at least to understand > > what part of posix_spawn code interferes with pipe-based I/O used by > > these LSP servers, and why. > > I don't find an emacs bug filed for this issue. Saulius, it would be > good to file one. > > This issue tickled a memory I had of Python moving away from posix_spawn > due to various portability issues: https://bugs.python.org/issue35823. > The issues they ran into and solved may inform this investigation. Thanks. I see nothing there about C#, nor even about problems with stdio redirection in subprocesses. There's some reference to closing file descriptors above 2, but AFAIU the problems in this bug report are related to descriptors that aren't above 2.