mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
after the termination of a HermitCore app, restart Linux on the CPUs
This commit is contained in:
parent
528fa1705b
commit
5822a1dc29
1 changed files with 3 additions and 2 deletions
|
@ -168,10 +168,12 @@ static void dump_log(void)
|
|||
|
||||
static void stop_kermit(void)
|
||||
{
|
||||
#if 0
|
||||
FILE* file;
|
||||
char isle_path[MAX_PATH];
|
||||
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
|
||||
snprintf(isle_path, MAX_PATH, "/sys/hermit/isle%d/cpus", isle_nr);
|
||||
|
||||
file = fopen(isle_path, "w");
|
||||
|
@ -183,7 +185,6 @@ static void stop_kermit(void)
|
|||
fprintf(file, "-1");
|
||||
|
||||
fclose(file);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue