chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fcd73bd60b236652028259f7d4bdd8c525f58b38
[elogind.git]
/
klibc
/
klibc
/
fork.c
1
/*
2
* fork.c
3
*
4
* This is normally just a syscall stub, but at least one system
5
* doesn't have sys_fork, only sys_clone...
6
*/
7
8
#include <sys/syscall.h>
9
#include <signal.h>
10
#include <unistd.h>
11
#include <sched.h>
12
13
#ifndef __NR_fork
14
15
pid_t fork(void)
16
{
17
return __clone(SIGCHLD, 0);
18
}
19
20
#endif /* __NR_fork */