[lxc-devel] [PATCH 1/5] wait_for_pid: Fix EINTR check
Serge Hallyn
serge.hallyn at ubuntu.com
Mon May 20 18:30:29 UTC 2013
Quoting Christian Seiler (christian at iwakd.de):
> Signed-off-by: Christian Seiler <christian at iwakd.de>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> src/lxc/utils.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/lxc/utils.c b/src/lxc/utils.c
> index be1ce88..cf42c38 100644
> --- a/src/lxc/utils.c
> +++ b/src/lxc/utils.c
> @@ -255,7 +255,7 @@ int wait_for_pid(pid_t pid)
> again:
> ret = waitpid(pid, &status, 0);
> if (ret == -1) {
> - if (errno == -EINTR)
> + if (errno == EINTR)
> goto again;
> return -1;
> }
> --
> 1.7.8.6
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel
More information about the lxc-devel
mailing list