13 lines
218 B
C++
13 lines
218 B
C++
|
#include <os/Process.h>
|
||
|
#include <sys/syscall.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
namespace os
|
||
|
{
|
||
|
Result<pid_t> Process::fork()
|
||
|
{
|
||
|
long rc = syscall(SYS_fork);
|
||
|
return Result<pid_t>::from_syscall(rc);
|
||
|
}
|
||
|
}
|