Re: [PATCH v3 4/4] samples: show race-free pidfd metadata access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/19, Christian Brauner wrote:
>
> +int main(int argc, char *argv[])
> +{
> +	int ret = EXIT_FAILURE;
> +	char buf[4096] = { 0 };
> +	pid_t pid;
> +	int pidfd, procfd, statusfd;

I think you need to initialize pidfd = 0 in this version ;) Otherwise,

Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux