From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: `message' not outputting the newline "atomically" Date: Wed, 19 Jun 2019 17:47:05 +0200 Message-ID: References: <83y31xr3aa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="253106"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 19 17:51:44 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdcsC-0013it-Bx for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2019 17:51:44 +0200 Original-Received: from localhost ([::1]:39674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdcsB-0002MJ-72 for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2019 11:51:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48347) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdcnn-00081J-VA for emacs-devel@gnu.org; Wed, 19 Jun 2019 11:47:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdcnm-0007gY-Rs for emacs-devel@gnu.org; Wed, 19 Jun 2019 11:47:11 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:54900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdcnm-0007fm-Lc; Wed, 19 Jun 2019 11:47:10 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdcnh-0003ka-Lo; Wed, 19 Jun 2019 17:47:09 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEVDMS7Ii1YTDxEoISFo RDglbOTlAAACbElEQVQ4jU1U4XkrIQxzDgYIDQPcZ2cABxjAFO8/05Oh32vzowmnk2xLpsTM0rs0 fHPvmrR3yp467TOleI43KOEAuDEAJZybBELU8XHS1qhJTnHaYviVvdctZWo4XRC4EzfRUvHMPNFS vGYX32ks7jxKWWQdqintXui6tKIQgFACEPraNV8ihTajAEBXvXFrwBr3h/kG3FGWJCgs6FY+5iuA aluKEyY8432pZwBPqDBBYk/N+NGUZjBiWEwuDVKohseeg1H4AKgBqqSmI4kHcPGWkoaWGD2nvu45 8w8AGQ4GjGg9kduntH4Yx3F12IIkdNbXB7ZQoDHEXPjjVF6fJ0ilkCIbsLKF+dnL67ZP9IyubvcU vpM7xlicH9FZFK8pu+G5dfXi1OcGBgqCQXkarJvuvg4jEyEqazLAW/C8+iinxoCZ2qWn96PCWf+W A4ivfKnC/lzqA/m9+HTVsxFHTii6MMEsCcE4gnr7YoVani8ezzqLj7OJ6uu6Ybp7l1xnRbZoEFKU 9ZIO3G2s55gQ8+koLgonUYPe1deLH7M/qkdXXQ1Y7NCsvSIR81InarxpNvEm1HOtWDqMCLFt4uMb WQklspdB0gHE5DLHVwCa0qgmRvDKD+AeQNcBa+kJH6efPOZsAFqsQ6Hndn0zbFYsn2CSJsV/AUab sd9qiNi9lv8Az5oThZkpUv8Fwv9ZsRO4jvoXuKFakXjjdI3nH2AvHPmskclzU6ofAKuiCwzBTPbb 7gGufX/m2+Im+JG6Y6mFsUelAoiSYfu11QZdeNXqO/lZOGzOvmjDF/K6fbT8UwP/KFCCzEfcNxt8 JvkHFIOfeWgeZXAAAAAASUVORK5CYII= In-Reply-To: <83y31xr3aa.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 19 Jun 2019 18:41:17 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:237911 Archived-At: Eli Zaretskii writes: > I agree with Andreas: we aren't. It's just sheer luck if this happens > (probably because the time window for mixing output is small). No, we are on all Unix-like OS-es I'm familiar with, and certainly on GNU/Linux: If you output data that's less than PIPE_BUF in length, a write(2) call will never interleave the data. If you're using internal buffering of some kind, then you can get all kinds of funny interleaving, but this is the reason that the output from Makefiles never step on each others' lines, no matter how many gccs you run in parallel. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no