From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents Date: Fri, 30 Oct 2020 13:38:24 +0100 Message-ID: <87mu03j3cv.fsf@gnus.org> References: <5f9b49e9.1c69fb81.72b0f.80d6@mx.google.com> <83ft5wb0jz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36035"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44320@debbugs.gnu.org, Lin Sun To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 13:39:10 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 1kYTgU-0009ET-CO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 13:39:10 +0100 Original-Received: from localhost ([::1]:36200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYTgT-0005z0-7Y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 08:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYTgM-0005yl-Fb for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 08:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44991) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYTgM-0006dZ-5L for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYTgM-0000Bx-1P for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 08:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 12:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44320 X-GNU-PR-Package: emacs Original-Received: via spool by 44320-submit@debbugs.gnu.org id=B44320.1604061516699 (code B ref 44320); Fri, 30 Oct 2020 12:39:01 +0000 Original-Received: (at 44320) by debbugs.gnu.org; 30 Oct 2020 12:38:36 +0000 Original-Received: from localhost ([127.0.0.1]:56537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYTfw-0000BD-Kq for submit@debbugs.gnu.org; Fri, 30 Oct 2020 08:38:36 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYTfu-0000B0-S4 for 44320@debbugs.gnu.org; Fri, 30 Oct 2020 08:38:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=neFFcAAkFkA4f7sR6zFgcxz6fesSozvwE4LEHfvc2sU=; b=hKNmVVfIzEz1Gdl13OJF5eznM+ 9Cn9DtO2yy6iGDoG1oUUc++yMxD0H3fsk1h+Ue6ygzn02ass6qShfxv+m029U63rjS5cMOhuAfQ4u phxSAderMJU8/VG2J0WwAQB6Q4ojOcriNk9F5i0KHR8pGonhCQtTOWLH8z7j+gyUpZ/8=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYTfm-00005D-2D; Fri, 30 Oct 2020 13:38:28 +0100 X-Now-Playing: PJ Harvey's _Dry Demos_: "Hair" In-Reply-To: <83ft5wb0jz.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Oct 2020 10:06:08 +0200") 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:192082 Archived-At: Eli Zaretskii writes: >> I got a bug that `send-string-to-termina` maybe send part of contents to >> terminal, calling `fwrite` in loop to make sure all contents are written. > > Any idea why does it not write the entire string in the single call, > or how to reproduce this? What is the size of the string in the case > where it fails to write everything? fwrite isn't guaranteed to write the entire string in one go, is it? So I'm surprised that this doesn't lead to more problems, but I guess it doesn't show up more in practice because one usually sends less than one block at a time to the terminal? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no