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#47596: File descriptor error when exiting emacs on android 11 Date: Thu, 06 May 2021 12:45:17 +0200 Message-ID: <87k0ocw37m.fsf@gnus.org> References: <83im51deye.fsf@gnu.org> <730dad3a54f0f53b22e9603879e949b60f5b2c00.camel@grimler.se> <191e2295b88384adf0e7cc1e3dc84cf8f37eb973.camel@grimler.se> <838s5wdhef.fsf@gnu.org> <2215b2299da65d790a705d9b83051028a1a2b693.camel@grimler.se> 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="369"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47596@debbugs.gnu.org To: Henrik Grimler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 06 12:46:16 2021 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 1lebWJ-000AY2-Ls for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 12:46:15 +0200 Original-Received: from localhost ([::1]:42974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lebWI-0007lu-P5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 06:46:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lebW6-0007lM-L4 for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 06:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lebW6-0004c8-CN for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 06:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lebW6-0001Kc-9x for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 06:46: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: Thu, 06 May 2021 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47596 X-GNU-PR-Package: emacs Original-Received: via spool by 47596-submit@debbugs.gnu.org id=B47596.16202979303366 (code B ref 47596); Thu, 06 May 2021 10:46:02 +0000 Original-Received: (at 47596) by debbugs.gnu.org; 6 May 2021 10:45:30 +0000 Original-Received: from localhost ([127.0.0.1]:37326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lebVZ-0000ru-W9 for submit@debbugs.gnu.org; Thu, 06 May 2021 06:45:30 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lebVX-0000je-Iq for 47596@debbugs.gnu.org; Thu, 06 May 2021 06:45:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=YlIJaUCraJ8wVvlMwk9RPiuESFKMPjSjTnCxhDqwLxQ=; b=h4pdX1UZIhj/E49otPzuM6PH2L 70bJ+2Oa2KDT9aKHoMdyvNZ7+Q1jxorgg2igASdWklruUQafqC30rN7jRVChMOr2+hewPbbNCA/4v ln0i+MCfBXUeEInnA73TnCouUs/ip2Ye2kXeL9X61PdecoGaNgSNFM/Qwe5idAh39250=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lebVO-0006D7-5T; Thu, 06 May 2021 12:45:20 +0200 X-Now-Playing: Nico's _Do Or Die_: "Femme Fatale" In-Reply-To: <2215b2299da65d790a705d9b83051028a1a2b693.camel@grimler.se> (Henrik Grimler's message of "Mon, 05 Apr 2021 19:29:52 +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:205811 Archived-At: Henrik Grimler writes: >> > In emacs fdopen is run in init_standard_fds, where we have >> >=20 >> > =C2=A0 force_open (STDERR_FILENO, O_RDONLY); >> >=20 >> > =C2=A0 /* Set buferr if possible on platforms defining _PC_PIPE_BUF, as >> > =C2=A0=C2=A0=C2=A0=C2=A0 they support the notion of atomic writes to p= ipes.=C2=A0 */ >> > =C2=A0 #ifdef _PC_PIPE_BUF >> > =C2=A0=C2=A0=C2=A0 buferr =3D fdopen (STDERR_FILENO, "w"); >> > =C2=A0=C2=A0=C2=A0 if (buferr) >> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 setvbuf (buferr, NULL, _IOLBF, 0); >> > =C2=A0 #endif >> > } >>=20 >> This just creates a copy of stderr that has special buffering.=C2=A0 >> Again, >> entirely valid for a C program to do that. > > I probably should have included a bit more context in the android bug > report to better show what the code does.=20 Did you try to include this context in the Android bug report and see what they say then? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no