diff options
Diffstat (limited to 'userspace/init.c')
| -rw-r--r-- | userspace/init.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/userspace/init.c b/userspace/init.c index 7237fdc..0e0fd66 100644 --- a/userspace/init.c +++ b/userspace/init.c @@ -7,11 +7,21 @@ int main(int argc, char **argv) // loop forever and spawn shells if the top-shell exits + _execve("/bin/vesa",NULL,NULL); + int pid=_fork(); if(pid==0) { - _execve("/bin/pain1",NULL,NULL); + int pid=_fork(); + if(pid==0) + { + _execve("/bin/pain1",NULL,NULL); + } + else + { + _execve("/bin/vesa",NULL,NULL); + } } else { |
