jos/user/spawnhello.c

11 lines
212 B
C
Raw Normal View History

2018-10-24 17:44:45 -07:00
#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);
}