MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_fork

Function sys_fork

components/lwp/lwp_syscall.c:3707–3710  ·  view source on GitHub ↗

* @brief Creates a child process by duplicating the calling process. * * This system call creates a new child process by duplicating the calling process. The * new child process is a copy of the parent process, except for the returned value. * The child process starts executing from the point of the fork, but the return value * differs between the parent and child: the parent receives the pro

Source from the content-addressed store, hash-verified

3705 * processes to avoid leaks and inconsistencies.
3706 */
3707rt_weak sysret_t sys_fork(void)
3708{
3709 return _sys_fork();
3710}
3711
3712rt_weak sysret_t sys_vfork(void)
3713{

Callers 1

sys_vforkFunction · 0.70

Calls 1

_sys_forkFunction · 0.85

Tested by

no test coverage detected