| 368 | } |
| 369 | |
| 370 | static pid_t |
| 371 | ff_sys_fork(struct ff_fork_args *args) |
| 372 | { |
| 373 | void *parent = args->parent_thread_handle; |
| 374 | /* |
| 375 | * Linux has performed a real fork, and at this point, |
| 376 | * we simply need to create a new thread and duplicate the file descriptors |
| 377 | * that the parent process has already opened. |
| 378 | */ |
| 379 | if (parent) { |
| 380 | args->child_thread_handle = ff_adapt_user_thread_add(parent); |
| 381 | } |
| 382 | |
| 383 | return 0; |
| 384 | } |
| 385 | |
| 386 | static int |
| 387 | ff_sys_register_thread(struct ff_register_application_args *args) |
no test coverage detected