From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de (mout.web.de [212.227.17.11]) by sourceware.org (Postfix) with ESMTPS id 0AEA9382E822 for ; Mon, 15 Feb 2021 09:43:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0AEA9382E822 X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.2.103] ([84.143.151.159]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LrJwm-1lsbGP0P6K-0138FH; Mon, 15 Feb 2021 10:43:29 +0100 Subject: Re: (stat(...) == -1 || faccessat(...) == -1) && errno == EINTR ?!?? To: Florian Weimer Cc: libc-help@sourceware.org, Godmar Back References: <000830b6-1cf0-6349-5667-a5af6894ac1b@web.de> <87czx1fzun.fsf@oldenburg.str.redhat.com> From: Tobias Bading Message-ID: <8a591e0e-33bb-7518-5e31-42f0545a940e@web.de> Date: Mon, 15 Feb 2021 10:43:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87czx1fzun.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:4MnJmjrBGD0kacqJz0fiZ1A/bazzr9VPu+C+jv+t5E3CLGxTFiU Xi2JezzdYN1iXcSZ+5edWk1lTupfhd29+6L5l/q4hFe3eWTCLFrW16ceIQx8L2NukzOlNQL 3iqiTJFwSWB1QKa8s04+lt5rQvj9zPQxW2cM5vlKNEeZpALLEp4XS9GSJ6UA/6GV+A27y/t K2PQKrDDruKavrKesBjXA== X-UI-Out-Filterresults: notjunk:1;V03:K0:wz+Banaq+gk=:cuJhLn+f9YsU+f6w9UqpOJ lxZC+ZAS80rz1RKlBYYaWpf39kwN2Q+/gnHtWILgXxAWY0axOTGh9wV9AIwxH9p02fzhRdWuD aR/lFi8dWfMTpismQfodQe/cnmmVZQILu8zkN15/0kIOKQaD5evd5m9mU/MeaGnjFL5Ly+DQc MYfNPph6Kc41vYjea4w6jQwiaQMFAhZ8pv+8Rm7cVojNnGS7KTzmOaHH3qG+vsJTGHfoaJ1NC YFIsZ0YAij8ckY1ihHKSoTsFJ4DRq5dm+wQoNShbg6n6mdzM93MmZr1DPOQ8GwRCC5Wl5E2Rv c9ZNUIT1vuDrW+GrCc+Fha3vZxEYwVyp3rGQR62HMIoaUmup4FpKv4UY6thdxg13J2pjNhw+7 XfWFhULOTpwMLuyLpRAd98sp5Mzk14IJ10sRRuR1CRYR+G2abFWUNaVaIG+GbHSYQ+3tLrEL4 AY75/2QyLXK5TBJHHxyacEfjKzdoD9P7lbuceIVoTOmskjUsxaQYG+WcEZzsHpijE/4WACKDC LKEtDN/CMlq3J0T+HxgYlQaCSBrb0EfzQ4zuXcrgr4fxB1kmtLAiSGauJ3lCi+Qo9BGE90wlB noGENCdBKX5hVMsLYub0RicROlYaAF58TPsND7xiQUm+Hl/dXwPbZjciNEbv1oqAczCRRa1AN 56xiE49+uT1tbg+scQEta/xunehrJyR63SVgWri4Dma3L/rnIEFeO0mEJz+WggtH+BFHBZ6xK Vpo9DVH0M100JbyagviGv5UXR7gpe+CA+X2lUDFjLinHt0iTrdBzTdFQp7MJw+UKN/GJGSvzj +IT6ECxKMZY9ptIFBOC38rua2xy4dpnvAoIccOut+LIp+5TVngVD60IYIa1K//AWVq/MZbLgW gfU4GifRuhdVxTAYfyxg== X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, PLING_QUERY, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2021 09:43:35 -0000 > Returning EINTR in stat would allow relatively straightforward > implementation of a timeout, in case the path resides on a network file > system and the server is unreachable.=C2=A0 So it's not a completely > unreasonable thing to do. Good point. > On the other hand, the cost in lost backwards > compatibility with applications that do not know about this behavior > appears to be pretty high, as this thread shows. What's your interpretation of the POSIX standard? Does it permit such a backwards compatibility breaking change? Tobias