made example spawn program exit after child

This commit is contained in:
Anton Lydike 2021-08-26 10:38:52 +02:00
parent d1bef0f8a1
commit 5ee37143af
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Note that these programs are of poor quality.
* `simple.c` does some arithmetic in a loop, occasionally prints something rather random (the sequence goes `90,90,90,2386,2386,ae86,520c,1cbde,...`)
* `simple.c` does some arithmetic in a loop, occasionally prints something rather random (the sequence goes `90,90,90,2386,2386,ae86,520c,1cbdc,1cbde...`)
* `spawn.c` this thing spawn a new thread and exits when the thread overwrites a value.
## Compiling

View File

@ -34,7 +34,7 @@ int thread(void* args)
dbgln(buff, (int) (end - buff));
// *((int*) args) = 0;
*((int*) args) = 0;
return arg;
}