Blame SOURCES/0012-Replace-syscall-__NR_clone-.-with-clone.patch

d7fdbd
From 0c3a1123c391995ab46cfde603fa025ff180a819 Mon Sep 17 00:00:00 2001
d7fdbd
From: Martin Sehnoutka <msehnout@redhat.com>
d7fdbd
Date: Wed, 7 Sep 2016 11:43:54 +0200
d7fdbd
Subject: [PATCH 12/59] Replace syscall(__NR_clone ..) with clone ()
d7fdbd
d7fdbd
in order to fix incorrect order of params on s390 arch
d7fdbd
---
d7fdbd
 sysdeputil.c | 4 ++--
d7fdbd
 1 file changed, 2 insertions(+), 2 deletions(-)
d7fdbd
d7fdbd
diff --git a/sysdeputil.c b/sysdeputil.c
d7fdbd
index b2782da..3bbabaa 100644
d7fdbd
--- a/sysdeputil.c
d7fdbd
+++ b/sysdeputil.c
d7fdbd
@@ -1306,7 +1306,7 @@ vsf_sysutil_fork_isolate_failok()
d7fdbd
   static int cloneflags_work = 1;
d7fdbd
   if (cloneflags_work)
d7fdbd
   {
d7fdbd
-    int ret = syscall(__NR_clone, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL);
d7fdbd
+    int ret = clone(NULL, NULL, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL);
d7fdbd
     if (ret != -1 || (errno != EINVAL && errno != EPERM))
d7fdbd
     {
d7fdbd
       if (ret == 0)
d7fdbd
@@ -1328,7 +1328,7 @@ vsf_sysutil_fork_newnet()
d7fdbd
   static int cloneflags_work = 1;
d7fdbd
   if (cloneflags_work)
d7fdbd
   {
d7fdbd
-    int ret = syscall(__NR_clone, CLONE_NEWNET | SIGCHLD, NULL);
d7fdbd
+    int ret = clone(NULL, NULL, CLONE_NEWNET | SIGCHLD, NULL);
d7fdbd
     if (ret != -1 || (errno != EINVAL && errno != EPERM))
d7fdbd
     {
d7fdbd
       if (ret == 0)
d7fdbd
-- 
d7fdbd
2.14.4
d7fdbd