Replying to @tranquillity@mastodon.minionflo.net
@azonenberg@ioc.exchange @hazelnoot@enby.life
#ifdef __ARCH_WANT_SYS_FORK
SYSCALL_DEFINE0(fork)
{
#ifdef CONFIG_MMU
struct kernel_clone_args args = {
.exit_signal = SIGCHLD,
};
return kernel_clone(&args);
#else
/* can not support in nommu mode */
return -EINVAL;
#endif
}
#endif
fork internally just calls clone with some default arguments