made example spawn program exit after child

master
Anton Lydike 3 years ago
parent d1bef0f8a1
commit 5ee37143af

@ -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

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

Loading…
Cancel
Save