From 3cbe80e8a14540acd022e1919e5aec37735df7a9 Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Fri, 16 Dec 2011 17:12:08 +0800 Subject: [PATCH] kvm-tools: fix wrong "./lkvm list -i" because the program name is changed, "./lkvm list -i" can't work now. This fix just remove the test: 1) this test is not reliable. 2) the target process can respond for "get_pid()", it must be kvm-tool. (at least it is more reliable) Acked-by: Sasha Levin Signed-off-by: Lai Jiangshan Signed-off-by: Pekka Enberg --- builtin-list.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/builtin-list.c b/builtin-list.c index 2d593b5..61bba86 100644 --- a/builtin-list.c +++ b/builtin-list.c @@ -11,8 +11,6 @@ #include #include -#define PROCESS_NAME "kvm" - struct pid_cmd { u32 type; u32 len; @@ -71,8 +69,6 @@ static int print_guest(const char *name, int sock) goto cleanup; if (fscanf(fd, "%*u (%as)", &comm) == 0) goto cleanup; - if (strncmp(comm, PROCESS_NAME, strlen(PROCESS_NAME))) - goto cleanup; printf("%5d %-20s %s\n", pid, name, KVM_INSTANCE_RUNNING);