From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2790 invoked from network); 19 Jan 2021 19:33:54 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Jan 2021 19:33:54 -0000 Received: (qmail 17462 invoked by uid 550); 19 Jan 2021 19:33:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 17444 invoked from network); 19 Jan 2021 19:33:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611084817; bh=fcaUNMQteNeP6UphUMssvgd0hrmo1yjYfzmG1c89CmI=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=e/qT88BYpE/chCDAafSpBF2/8Q7sw8w0MTPpg5gsJGFBqgsKSP1q18iWHFzaM837u R1q+5ooipoO6EUf+FfbR5/5fCersaA4+gVesBgFk37LnFBy/8PqaIAB1QdeWYet8vf 1LlpHI03rHJNIM9skpVVT5ZnCQsIkZA+AuDPQMZY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Date: Tue, 19 Jan 2021 20:33:37 +0100 From: Markus Wichmann To: musl@lists.openwall.com Message-ID: <20210119193337.GB2006@voyager> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Provags-ID: V03:K1:pk1FGIPavaSYWzX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CblLDgPy/bfz48IjSqvFQuXJNjKVDNvOu1+grWLxLSVyQahqJPfIHEzW1qRKCUf 0SJhjzdWECY/raq7wSNw== Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] waitpid (wait4) on Linux 5 returns invalid values On Tue, Jan 19, 2021 at 10:18:04AM -0800, Rasmus Andersson wrote: > However the wait4 syscall[3] in Linux 5 returns other values, > specifically it returns errors as negative values. The error that > trips up programs like runit's runsv is ECHILD (-10) which wait4 > returns when there are no children (i.e. they have exited.) > Hmm... that is very weird. That should not happen. Because the syscall_cp macro already contains a call to __syscall_ret(), which does exactly what you propose. So that means, there is something else going on in your copy of the code. Did you change anything about the source code? Or can you disassemble the function to see what it does? Ciao, Markus