[shell] And that's what was causing a bunch of my problems.
This commit is contained in:
parent
332920fe2d
commit
3e3c7fb544
@ -265,6 +265,7 @@ start_shell() {
|
||||
close_fs(chd);
|
||||
exec(filename, tokenid, argv);
|
||||
}
|
||||
free(filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user