|
Message-ID: <20210119193337.GB2006@voyager> Date: Tue, 19 Jan 2021 20:33:37 +0100 From: Markus Wichmann <nullplan@....net> To: musl@...ts.openwall.com Subject: Re: 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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.