herdd: task_duplicate test

This commit is contained in:
2026-04-20 22:17:28 +01:00
parent 109ee7b79c
commit 6c80d375f2
3 changed files with 12 additions and 7 deletions
+5 -2
View File
@@ -122,11 +122,14 @@ int main(int argc, const char *argv[], const char *envp[])
if (new_task == KERN_HANDLE_INVALID) {
kern_log("this is the child");
long r = printf("hello\n");
kern_logf("printf returned %ld (%d)", r, (errno));
} else {
kern_log("this is the parent");
long r = printf("goodbye\n");
kern_logf("printf returned %ld (%d)", r, (errno));
}
printf("hello\n");
kern_logf("exiting (%s)", strerror(EFTYPE));
return 0;
}