jos/user/spawninit.c
Anish Athalye c67463e23c Lab 5
2018-10-24 20:44:45 -04:00

11 lines
224 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("init", "init", "one", "two", 0)) < 0)
panic("spawnl(init) failed: %e", r);
}