debuging...

This commit is contained in:
fslongjin
2022-06-02 14:20:53 +08:00
parent b97aaee746
commit d64ddfa0b6
12 changed files with 243 additions and 299 deletions

View File

@ -42,13 +42,19 @@ void main_loop(int kb_fd)
unsigned char input_buffer[INPUT_BUFFER_SIZE] = {0};
sbrk(24);
// sbrk(24);
// brk(0x700000000000 + (1<<21));
pid_t pid = fork();
int retval = 0;
while (1)
for(int i=0;i<10;++i)
printf(" @pid=%d ", pid);
if(pid == 0)
{
int a = 1/0;
}
// 初始化当前工作目录的路径
shell_current_path = (char *)malloc(3);