From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id 412773858CDA for ; Tue, 27 Sep 2022 07:31:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 412773858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=deneb.enyo.de Received: from [172.17.203.2] (port=39339 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1od54H-007lkT-RL; Tue, 27 Sep 2022 07:31:49 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.94.2) (envelope-from ) id 1od54H-0005u4-Ef; Tue, 27 Sep 2022 09:31:49 +0200 From: Florian Weimer To: Leo Liang Cc: , , , Subject: Re: Is it reasonable to expect errno to be 0 when entering main? References: <87mtalz71b.fsf@mid.deneb.enyo.de> Date: Tue, 27 Sep 2022 09:31:49 +0200 In-Reply-To: (Leo Liang's message of "Tue, 27 Sep 2022 07:15:12 +0000") Message-ID: <87edvxz316.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Leo Liang: > Besides, Do you have any suggestion as to how this could be fixed? > We could try send out a patch as well! Hiding the getrandom failure is probably sufficient. All other failures in malloc will lead to the process failing to start, so those errors don't need to be masked.