Re: [PATCH 1/5] Split wait_noreap_copyout()

Andrew Morton
2009-05-11T23:49:16Z

On Mon, 11 May 2009 15:25:50 +0200
Vitaly Mayatskikh <v.mayatskih@gmail.com> wrote:

> + if (!retval && infop) {
> + retval = put_user(signal, &infop->si_signo);
> + if (!retval)
> + retval = put_user(0, &infop->si_errno);
> + if (!retval)
> + retval = put_user((short)why, &infop->si_code);
> + if (!retval)
> + retval = put_user(pid, &infop->si_pid);
> + if (!retval)
> + retval = put_user(uid, &infop->si_uid);
> + if (!retval)
> + retval = put_user(status, &infop->si_status);
> + }

I'll assume that "More changes to come" includes making all this somewhat
less inefficient ;)