projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a12da01abb0057257c39aa5f5640c17f292a4393
[musl]
/
src
/
process
/
fork.c
1
#include <unistd.h>
2
#include "libc.h"
3
4
static void dummy(int x) { }
5
weak_alias(dummy, __fork_handler);
6
7
pid_t fork(void)
8
{
9
__fork_handler(-1);
10
pid_t ret = _Fork();
11
__fork_handler(!ret);
12
return ret;
13
}