mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
search only for the substring "Server is listening"
because the complete line includes also the boot time
This commit is contained in:
parent
78e59f62f7
commit
75c126fc4b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue