MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ff_sys_fork

Function ff_sys_fork

adapter/syscall/ff_socket_ops.c:370–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370static pid_t
371ff_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
386static int
387ff_sys_register_thread(struct ff_register_application_args *args)

Callers 1

ff_so_handlerFunction · 0.85

Calls 1

ff_adapt_user_thread_addFunction · 0.85

Tested by

no test coverage detected