projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
global cleanup to use the new syscall interface
[musl]
/
src
/
process
/
fork.c
diff --git
a/src/process/fork.c
b/src/process/fork.c
index
87e7dc9
..
012b7ca
100644
(file)
--- a/
src/process/fork.c
+++ b/
src/process/fork.c
@@
-7,11
+7,11
@@
pid_t fork(void)
{
pid_t ret;
if (libc.fork_handler) libc.fork_handler(-1);
{
pid_t ret;
if (libc.fork_handler) libc.fork_handler(-1);
- ret = syscall
0(__NR
_fork);
+ ret = syscall
(SYS
_fork);
if (libc.lock && !ret) {
pthread_t self = __pthread_self();
if (libc.lock && !ret) {
pthread_t self = __pthread_self();
- self->pid = syscall
0(__NR
_getpid);
- self->tid = syscall
0(__NR
_gettid);
+ self->pid = syscall
(SYS
_getpid);
+ self->tid = syscall
(SYS
_gettid);
libc.threads_minus_1 = 0;
}
if (libc.fork_handler) libc.fork_handler(!ret);
libc.threads_minus_1 = 0;
}
if (libc.fork_handler) libc.fork_handler(!ret);