[shell] And that's what was causing a bunch of my problems.

This commit is contained in:
Kevin Lange 2011-04-15 16:56:25 -05:00
parent 332920fe2d
commit 3e3c7fb544
2 changed files with 2 additions and 11 deletions

View File

@ -265,6 +265,7 @@ start_shell() {
close_fs(chd);
exec(filename, tokenid, argv);
}
free(filename);
}
}
}

View File

@ -34,6 +34,7 @@
#include <system.h>
#include <boot.h>
#include <ext2.h>
#include <fs.h>
extern uintptr_t heap_end;
@ -156,16 +157,5 @@ int main(struct multiboot *mboot, uint32_t mboot_mag, uintptr_t esp)
start_shell();
while (1) {
kprintf("[%d] 0x%x\n", next_pid, exec("/bin/test", 0, NULL));
}
while (1) {
if (!fork()) {
kprintf("%d 0x%x\n", getpid(), heap_end);
kexit(0);
}
}
return 0;
}