]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Use getxpid syscall on alpha for raw_getpid() 865/head
authorMatt Turner <mattst88@gmail.com>
Tue, 4 Aug 2015 21:47:01 +0000 (14:47 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 4 Aug 2015 21:47:52 +0000 (14:47 -0700)
Alpha does not have a getpid syscall, but rather has getxpid to match
OSF/1.

src/basic/missing.h

index ed6cd80c7538c4a848ce4ab168db25fb62aa9859..34ab0254ddabc45007bf0e80f22da67cdbf74add 100644 (file)
@@ -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