my solution to lab5

This commit is contained in:
winPond
2019-07-11 19:40:12 +08:00
parent 1f043fb694
commit f78713349c
364 changed files with 8775 additions and 3249 deletions

10
lab/user/spawnfaultio.c Normal file
View File

@@ -0,0 +1,10 @@
#include <inc/lib.h>
void
umain(int argc, char **argv)
{
int r;
cprintf("i am parent environment %08x\n", thisenv->env_id);
if ((r = spawnl("faultio", "faultio", 0)) < 0)
panic("spawn(faultio) failed: %e", r);
}