jos/user/spawnhello.c
Anish Athalye c67463e23c Lab 5
2018-10-24 20:44:45 -04: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);
}