[lxc-devel] [PATCH 1/5] wait_for_pid: Fix EINTR check

Christian Seiler christian at iwakd.de
Mon May 20 15:54:20 UTC 2013


Signed-off-by: Christian Seiler <christian at iwakd.de>
---
 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





More information about the lxc-devel mailing list