Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 19 Jan 2021 20:33:37 +0100
From: Markus Wichmann <>
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?


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.