Merge pull request #865 from mattst88/alpha-getxpid
Use getxpid syscall on alpha for raw_getpid()
This commit is contained in:
@@ -977,7 +977,11 @@ static inline int raw_clone(unsigned long flags, void *child_stack) {
|
||||
}
|
||||
|
||||
static inline pid_t raw_getpid(void) {
|
||||
#if defined(__alpha__)
|
||||
return (pid_t) syscall(__NR_getxpid);
|
||||
#else
|
||||
return (pid_t) syscall(__NR_getpid);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !HAVE_DECL_RENAMEAT2
|
||||
|
||||
Reference in New Issue
Block a user