Files
MIT6.828_OS/lab/user/spawnhello.c
2019-07-11 19:40:12 +08:00

11 lines
212 B
C

#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("hello", "hello", 0)) < 0)
panic("spawn(hello) failed: %e", r);
}