chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
vol_id: fix sloppy error handling
[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 */