From 75c126fc4bc17262f89fb7c7e219377815216d8b Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 13 Nov 2016 23:13:23 +0100 Subject: [PATCH] search only for the substring "Server is listening" because the complete line includes also the boot time --- hermit/tools/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/tools/proxy.c b/hermit/tools/proxy.c index 666b57734..9cd547a49 100644 --- a/hermit/tools/proxy.c +++ b/hermit/tools/proxy.c @@ -210,7 +210,7 @@ static int is_hermit_available(void) return 0; while(getline(&line, &n, file) > 0) { - if (strncmp(line, "TCP server is listening.\n", 2048) == 0) { + if (strstr(line, "TCP server is listening.") != NULL) { ret = 1; break; }