|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xl: remove needless infinite-loop construct in create_domain
commit 50b9bdf83b35242f3c5170ac823791f3102bff1f
Author: Matthew Daley <mattjd@xxxxxxxxx>
AuthorDate: Wed Oct 30 20:51:57 2013 +1300
Commit: Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Thu Oct 31 21:55:52 2013 +0000
xl: remove needless infinite-loop construct in create_domain
Use a simple if condition instead.
Coverity-ID: 1056150
Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
tools/libxl/xl_cmdimpl.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index a935a18..d8f9aba 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -2144,9 +2144,8 @@ start:
child1 = xl_fork(child_waitdaemon);
if (child1) {
- for (;;) {
- got_child = xl_waitpid(child_waitdaemon, &status, 0);
- if (got_child == child1) break;
+ got_child = xl_waitpid(child_waitdaemon, &status, 0);
+ if (got_child != child1) {
assert(got_child == -1);
perror("failed to wait for daemonizing child");
ret = ERROR_FAIL;
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |