sched: add kthread interface for system calls
This commit is contained in:
parent
e3ea41d297
commit
89672d02f4
9 changed files with 169 additions and 140 deletions
|
|
@ -36,13 +36,13 @@ void _start()
|
|||
|
||||
if (c[0] == '\n') {
|
||||
write(fd, "attempting to fork\n", 19);
|
||||
if (fork() == 0) {
|
||||
pid_t pid = fork();
|
||||
|
||||
if (pid == 0) {
|
||||
write(fd, "child\n", 6);
|
||||
exit(0xCCCC);
|
||||
exit(0);
|
||||
} else {
|
||||
write(fd, "parent\n", 7);
|
||||
|
||||
while(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue