summaryrefslogtreecommitdiff
path: root/userspace/init.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-12-05 00:16:42 +0100
committerMichal Idziorek <m.i@gmx.at>2014-12-05 00:16:42 +0100
commit743a4860cce117baec6ef3c40deb0f945529c34f (patch)
treefe9f609521ac66331364d8a9c97ac9dcf5fcd46c /userspace/init.c
parent41c3e0bc640f570831bd6c18fbfb8c7cec23a43d (diff)
struggling with paging exceptions!
Diffstat (limited to 'userspace/init.c')
-rw-r--r--userspace/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/userspace/init.c b/userspace/init.c
index 6dc6215..d152581 100644
--- a/userspace/init.c
+++ b/userspace/init.c
@@ -12,7 +12,9 @@ int main(int argc, char **argv)
if(pid==0)
{
- execve("/bin/foolshell",0,0); // replace process with our foolshell :)
+ char *argv[]={"/bin/foolshell",0};
+ char *env[]={"PS1=$","PWD=/home/miguel","PATH=/bin",0};
+ execve("/bin/foolshell",argv,env); // replace process with our foolshell :)
puts("FATAL ERROR: Something terrible happened. Unable to Execute SHELL!");
while(1);// hang