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: Sending EOF to process as part of comint-simple-send Date: Sun, 15 Jan 2023 11:08:37 +0200 Message-ID: <83tu0s5fmy.fsf@gnu.org> References: <83v8l971id.fsf@gnu.org> <1c1a3086-1c0a-e4c0-0bd6-6c48cd0efaa3@gmail.com> <831qnw6z7u.fsf@gnu.org> <874jss9onq.fsf@linux-m68k.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1699"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 15 10:09:31 2023 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 1pGz19-0000GW-8s for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Jan 2023 10:09:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGz0K-0002vR-GF; Sun, 15 Jan 2023 04:08:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGz0H-0002ue-Ap for emacs-devel@gnu.org; Sun, 15 Jan 2023 04:08:37 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGz0D-0002YM-HT; Sun, 15 Jan 2023 04:08:33 -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=pdxz/OzA353e9heE4l+OGE3jjJQmm11gliabcAW7Mys=; b=YQ0j3C8V3YnP C/PskR0hu23gO0xDCyk+Pym4pzy3YU5uyu7vPjFhQkHE7Ld5Oo1AMgkn7lQP5PU6rjl0i6ieusQZE flQXZlGZBCe3B+IuWHAT8LJ85Ozb3oc8SDfbe0fntAjILwb6cocoyLr7RSws+K1GoANIBUFCMDfDT a9I7xfOwj0ZWtB/NMsbsqzfHAD/CmtDVnlsfwts7SQw888MYARnT6zqbMNw2uMWOlVALU7WNxOLTe OqW1CvmlqBIwdEAyGG65P3ez9guVrfiI6LQbldV7//1kQuz6Yvm/b+/R0UXslxA8BIC75VTTLtdWr rqtQSB9h3vWW/CAGJHNC5g==; Original-Received: from [87.69.77.57] (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 1pGz0C-0002uV-Qi; Sun, 15 Jan 2023 04:08:33 -0500 In-Reply-To: <874jss9onq.fsf@linux-m68k.org> (message from Andreas Schwab on Sun, 15 Jan 2023 09:40:09 +0100) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302429 Archived-At: > From: Andreas Schwab > Cc: Jim Porter , emacs-devel@gnu.org > Date: Sun, 15 Jan 2023 09:40:09 +0100 > > On Jan 15 2023, Eli Zaretskii wrote: > > > Right. This doesn't work for pipes, so I intend to introduce a new > > function that does fsync on the descriptor via which we write to the > > sub-process, and call it there instead of process-send-eof. Does this > > make sense? > > You will probably get EINVAL. And the stuff will not be flushed? Is there a better way of doing that for pipe file descriptors?