Signed-off-by: Dwight Engen <[email protected]>
---
src/lxc/monitor.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c
index 0521e9a..5648b86 100644
--- a/src/lxc/monitor.c
+++ b/src/lxc/monitor.c
@@ -207,7 +207,8 @@ int lxc_monitord_spawn(const char *lxcpath)
}
if (pid1) {
- waitpid(pid1, NULL, 0);
+ if (waitpid(pid1, NULL, 0) != pid1)
+ return -1;
return 0;
}
--
1.8.1.4
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Lxc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-devel