mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
check if log file is available
This commit is contained in:
parent
63f94e8434
commit
e5487b846d
1 changed files with 4 additions and 2 deletions
|
@ -211,9 +211,11 @@ static int is_hermit_available(void)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (qemu)
|
||||
if (qemu) {
|
||||
file = fopen(tmpname, "r");
|
||||
else {
|
||||
if (!file)
|
||||
printf("%s is available\n", tmpname);
|
||||
} else {
|
||||
char logname[MAX_PATH];
|
||||
|
||||
snprintf(logname, MAX_PATH, "/sys/hermit/isle%d/log", isle_nr);
|
||||
|
|
Loading…
Add table
Reference in a new issue