From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: master 2c79a8f 2/2: Use posix_spawn if possible. Date: Tue, 08 Feb 2022 15:59:08 +0100 Message-ID: <87leyl5rr7.fsf@gmail.com> References: <87czk5brgr.fsf@gmail.com> <7BD6026F-D756-42C3-9FCC-724D9A6B2378@fastmail.com> <187BA387-6D96-457A-A157-388AD9379D85@fastmail.com> <83tud9wo9e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31962"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, emacs-devel@gnu.org, p.stephani2@gmail.com, matt@rfc20.org, Eli Zaretskii , mituharu@math.s.chiba-u.ac.jp To: Saulius Menkevicius Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 08 18:37:32 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 1nHUQj-00081L-CC for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Feb 2022 18:37:29 +0100 Original-Received: from localhost ([::1]:50056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHUQi-0006ed-4W for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Feb 2022 12:37:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHRxn-0005mq-D9 for emacs-devel@gnu.org; Tue, 08 Feb 2022 09:59:28 -0500 Original-Received: from [2a00:1450:4864:20::429] (port=38733 helo=mail-wr1-x429.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHRxh-0004KW-Ou; Tue, 08 Feb 2022 09:59:26 -0500 Original-Received: by mail-wr1-x429.google.com with SMTP id s10so28667748wra.5; Tue, 08 Feb 2022 06:59:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=bv816zEXLaCr9Q9gGSSj/rRWWdnRM+nPC7JcybCm0cI=; b=ANW/MsxH3f9dccipTiUQYFg8Lsvuf6GUonHDBlOXtW7j1ZEIkA+HkXFpV0K+yMMvZs ydcNIH8bjw43SJ7LvZPLBiZltuPJ29hATz2vRl+7K7zT+qstCWEztg/+5SidfJW6rCsb R3hoQ0FcS1NlOE5OAuYsMp9uJwNCY9kWfYKc7Ck39LD2jleErCqObLJXhinlyQIYugAj hy6uTQtomG+QmraGv+bwwJ/OVFzZVWczL7Mg4j6IIcM40zhgcVRfXHxejpCJQYStfq/P yeDLTpohSlUokJHR1Tsj4J3LGmKphUQN5aJWSiB/Ug7yOVHVWOWR4wdzeRZkg+WTrz6z hbBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=bv816zEXLaCr9Q9gGSSj/rRWWdnRM+nPC7JcybCm0cI=; b=W4eaIiYJwU1GURiL/kDecTeLHWhsLc6lEoOlCNn1ncT9XtqX/GyRL8pdYsEYvCdeO0 DiPJGO0hEGu+5NaBprFJfi0Aw3b8rgtHjKVZv6iVRTtbLBzqFhCV0VCyqP6S8En056OG Op5xh8yzXtEWQ/KYg0JHMr5+4wbGxE3bst3iq6Serco4dqQ4V7OP94CyDr6czd+ufDR0 sh4x+vgltfLG/pPfMuYBJ4cOte6mVo4aXciRl81EiF4Gn79arXOagwfW67zAO25PAV+N mDj+yT36MZXuY79n+T5O2H0wCo27Op70ruNkjjinxbL2qNCfCZbiUMDkYAyDAk0uc4ZQ jYkw== X-Gm-Message-State: AOAM530JvAGVYyQUhnLoObgUjf1Ljo+w9RbgnFdqdmYwdoW2mXaGndk3 b/rWerKlHFNMz2jlvig6sVA3Son4C/X5NA== X-Google-Smtp-Source: ABdhPJzzDvBMzl5fVM21GJFj5ELi78Daze8Sby+Amthk2jaqVIP8aYBxArPSm6KjjiSZtGqFZ9g9qg== X-Received: by 2002:adf:ff83:: with SMTP id j3mr2381086wrr.215.1644332350314; Tue, 08 Feb 2022 06:59:10 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:a7fc:d931:6725:24e8]) by smtp.gmail.com with ESMTPSA id u14sm3178900wmq.41.2022.02.08.06.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 06:59:09 -0800 (PST) In-Reply-To: (Saulius Menkevicius's message of "Tue, 8 Feb 2022 14:18:43 +0200") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::429 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=rpluim@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:286079 Archived-At: >>>>> On Tue, 8 Feb 2022 14:18:43 +0200, Saulius Menkevicius said: Saulius> I believe this is not a problem related to C#/dotnet but gener= ally Saulius> with how signals are blocked on child processes launched with Saulius> posix_spawn in the current implementation. (I could argue that if dotnet wants to ensure it receives SIGCHLD, it should unblock it itself, but that=CA=BCs a different discussion, we definitely have an Emacs bug) And come to think of it, the posix_spawn code path is only exercised when not asking for a pseudo tty. Since the default value for `process-connection-type' is t =3D> pty, I=CA=BCm assuming that the elisp code in question is binding that to nil, or using the :connection-type argument to `make-process'. Would it be possible to test using ptys? If that works that=CA=BCs a workaround that requires no changes to emacs-28. Thanks Robert --=20