diff options
Diffstat (limited to 'arch/um/os-Linux/process.c')
-rw-r--r-- | arch/um/os-Linux/process.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c index ff203625a4bd..51f0893640a6 100644 --- a/arch/um/os-Linux/process.c +++ b/arch/um/os-Linux/process.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <sys/mman.h> | 11 | #include <sys/mman.h> |
12 | #include <sys/wait.h> | 12 | #include <sys/wait.h> |
13 | #include <sys/mman.h> | 13 | #include <sys/mman.h> |
14 | #include <sys/syscall.h> | ||
14 | #include "ptrace_user.h" | 15 | #include "ptrace_user.h" |
15 | #include "os.h" | 16 | #include "os.h" |
16 | #include "user.h" | 17 | #include "user.h" |
@@ -140,11 +141,9 @@ void os_usr1_process(int pid) | |||
140 | * syscalls, and also breaks with clone(), which does not unshare the TLS. | 141 | * syscalls, and also breaks with clone(), which does not unshare the TLS. |
141 | */ | 142 | */ |
142 | 143 | ||
143 | inline _syscall0(pid_t, getpid) | ||
144 | |||
145 | int os_getpid(void) | 144 | int os_getpid(void) |
146 | { | 145 | { |
147 | return(getpid()); | 146 | return(syscall(__NR_getpid)); |
148 | } | 147 | } |
149 | 148 | ||
150 | int os_getpgrp(void) | 149 | int os_getpgrp(void) |