From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Compiling in mingw-ucrt runtime Date: Thu, 22 Feb 2024 14:24:52 +0800 Message-ID: <87o7c96mob.fsf@yahoo.com> References: Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31042"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 22 07:26:16 2024 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 1rd2X9-0007t5-Mu for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Feb 2024 07:26:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rd2WW-000629-5d; Thu, 22 Feb 2024 01:25:36 -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 1rd2WT-00061X-IS for emacs-devel@gnu.org; Thu, 22 Feb 2024 01:25:34 -0500 Original-Received: from sonic302-20.consmr.mail.ne1.yahoo.com ([66.163.186.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rd2WQ-0004n9-QO for emacs-devel@gnu.org; Thu, 22 Feb 2024 01:25:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708583127; bh=G0MYlWZVbtd/ga3VMT5sKAKay2oSk+6bCUFflCnn19I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=UHD9F3p1P3cSLBBco60pNsZwhR4KZm+KVEHgI6meIey+rx4fIncMNISR1PjB4h+0ZxzOvo4jTSL80htqsOZP10zJ++Q+zoryWSOoRaA8tSHL0yBCA7NR85WuS719jJgSGsu8t2/GOGdWp73IFyUXsSLkNnuHoM/ECjg2k/egAPRe93kpB0S8lCO0QwwWzxdiS4PQPeL767vki8/+8+UlJ7jYiCYwvBktdU/q/BVnYiPWNiqTGNhWWIGfA2Jm01QpzOCEYcv81rth024576xxqejVvwAqXtosiQtwPurP+y5SzppoRczjXuVGMS3In3caiyXcz3wFbHOJ5e2t78oavA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708583127; bh=2bmrvXvhr6Utk7qpP8z8EmIBtuAi2//KD/r1ZkAObpV=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=O8jHBY7jaV+bOUXXbFBpShRwbiZgKLFUK46M3G0LZpi7EhhEYdiAUoniaqjoZhQnBYejsBPo7BrqsKXqU9vU0wujCJLcj++pXN7DPLj1St+EUWouKM7P5qCxkr7nBTRS7GZqhjsBmxNlj7eQVPMPvDvkSTM+bIZbLtmUzFRGgHYmrPdY6JL+YPmAHTk5QQGQ3BnmsUMOWiXwm+nJjq4z0NFTVMgpKxIY7O7r+N+rAXWZ9HKpoQNy2M6x2UZ7J1hK/gtx4ip7mvVCUdZvdEz6tSgnwx3Ud+QhaCWH0ejLysY/14lR9XD2cv/slreYgtTs2bvKMdOxbwQoOYBUY/njxw== X-YMail-OSG: gVqe19EVM1mJB0XnST2lnTi7UQ.6v0WHCewLrgDQM7Rp.ulcz9IxMVe1htD5d07 hQMEGJTZpnUAoe4nNnkCxKlxZyrHN..P7xmAL1mUj60NcR1PjvEXWS_Ti6mOyMDfXEX4cvXVErfM 5Fa3hbKpELBY0WyfnAZpRgIjj1KZqMZrtV531sYy9Iml9U9Rd3YtLvpRZVbM4k9ZbVxfq01MmNOW ABos7anyBsuPmRjBedp906wsharwbOLwyjiLy_jqm_BxALB8sgReKTBm_0U3G3KsuINGkGphM4wp VH4zuidW5rSiLOKlaJ.WqaVWPc0DoS6eSxp2_qaJefdCNG9CY0_9cWUrYBrtMXxf88Bxv.g4J38T lMwDCOGIYgRHhS3KRT7RFmIOHpfCUCAju83uRTHBL8f7pS9RXhWSa4xr0Ej_3LMt9qI5eYmCVnTD JJEpUKQag_Ei_RQMTSir7NRVPsl2ecbnh9arl2o4ExA9h0THmLTJEEshLe0iaUj8Q1QtmsGqVD3_ HSPGf06OzAxQy5ZnSwfjcdLN7VWvTZOvTBOhW4HQHQ6TWB_IdE8CjhXCBb.3L8M2l5HiZUewxj1Y PQ0WOuIOaAFaHOKSsGl7Lcex07lAhyky1ipEcjQCtVYe37seUYGtm0dh8ZzFDjeRHd8UYRexuC3j 3u1aY7OQcVCNATbCe48cAanDwWd7OKkS6fyvd123RmX_2b6EsPO0AskQmLi3Vv.dPh_krrm9IS9M l_wFxBynPBJM2Inx_lQNcJNbJ0CEo8tlHozlEnm8pTNhbNN9AoZDBoOvCE5kmT7_kmFaAZ6n4X9O 2VkPoteuvJ68vo6mWl1Xg1pj42hL5_7tzqbtfZZg93 X-Sonic-MF: X-Sonic-ID: 53494c19-1e57-43b3-8cfc-f9b831d402b3 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Thu, 22 Feb 2024 06:25:27 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-67hzc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 747a8bb477a93c5c88edec210bb795b4; Thu, 22 Feb 2024 06:25:21 +0000 (UTC) In-Reply-To: (Arthur Miller's message of "Thu, 22 Feb 2024 01:01:17 +0100") X-Mailer: WebService/1.1.22077 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.146; envelope-from=luangruo@yahoo.com; helo=sonic302-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316439 Archived-At: Arthur Miller writes: > diff --git a/src/sysdep.c b/src/sysdep.c > index 3a6829dd27a..5d294ca1bdf 100644 > --- a/src/sysdep.c > +++ b/src/sysdep.c > @@ -2981,7 +2981,7 @@ close_output_streams (void) > fflush (stderr); > fflush (stdout); > #else /* !__ANDROID__ */ > - if (close_stream (stdout) != 0) > + if (close_stream (stdout) != 0 && errno && (errno != EINTR)) > { > emacs_perror ("Write error to standard output"); > _exit (EXIT_FAILURE); > @@ -2993,7 +2993,10 @@ close_output_streams (void) > if (err | (ADDRESS_SANITIZER > ? fflush (stderr) != 0 || ferror (stderr) > : close_stream (stderr) != 0)) > - _exit (EXIT_FAILURE); > + { > + if (errno && (errno != EINTR)) > + _exit (EXIT_FAILURE); > + } > #endif /* __ANDROID__ */ > } > Why is this change necessary to build Emacs with a previously unsupported C library? If it is, shouldn't whatever problem it circumvents be addressed in Gnulib (which provides close_stream), and not in Emacs?