summaryrefslogtreecommitdiff
path: root/userspace/init.c
blob: fd562a9eb46a36b801467f569b8a85183d2671c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
int main(int argc, char **argv)
{
    int pid=fork();

    if(pid!=0)
    {
	printf("fool-init: forked child (pid: %i) spawning a Fools Shell\n",pid);
	execve("/bin/foolshell",0,0);

    }
    else
    {
	// TODO: wait for child and respawn shell if needed!
	volatile int i=0;
	while(1)
	{

	}
    }
    return 0;
}