mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 05:56:32 +00:00
🐛 页表拷贝的bug
This commit is contained in:
@ -2,7 +2,7 @@ user_sub_dirs = libs
|
||||
|
||||
SUBDIR_ROOTS := .
|
||||
DIRS := . $(shell find $(SUBDIR_ROOTS) -type d)
|
||||
GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ kernel
|
||||
GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ sys_api_lib
|
||||
GARBAGE := $(foreach DIR,$(DIRS),$(addprefix $(DIR)/,$(GARBAGE_PATTERNS)))
|
||||
|
||||
|
||||
|
@ -25,6 +25,11 @@ int main()
|
||||
read(fd, buf, 128);
|
||||
put_string(buf, COLOR_YELLOW, COLOR_BLACK);
|
||||
close(fd);
|
||||
|
||||
pid_t p = fork();
|
||||
if(p == 0)
|
||||
put_string("subproc\n", COLOR_PURPLE, COLOR_BLACK);
|
||||
else put_string("parent proc\n", COLOR_ORANGE, COLOR_BLACK);
|
||||
|
||||
while (1)
|
||||
;
|
||||
|
BIN
user/sys_api_lib
BIN
user/sys_api_lib
Binary file not shown.
Reference in New Issue
Block a user