herdd: task_duplicate test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user