diff options
Diffstat (limited to 'testing/openvswitch/0001-ovs-thread-Set-stacksize-to-1M.patch')
-rw-r--r-- | testing/openvswitch/0001-ovs-thread-Set-stacksize-to-1M.patch | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/testing/openvswitch/0001-ovs-thread-Set-stacksize-to-1M.patch b/testing/openvswitch/0001-ovs-thread-Set-stacksize-to-1M.patch index 9533c4a29d..57b1796c30 100644 --- a/testing/openvswitch/0001-ovs-thread-Set-stacksize-to-1M.patch +++ b/testing/openvswitch/0001-ovs-thread-Set-stacksize-to-1M.patch @@ -1,4 +1,4 @@ -From a298bd267fae3238bde1847292efd2da08ad5b34 Mon Sep 17 00:00:00 2001 +From 92ae6e162812876c082fd9d05a0eeac062f832ae Mon Sep 17 00:00:00 2001 From: Natanael Copa <ncopa@alpinelinux.org> Date: Mon, 25 Aug 2014 08:50:26 +0000 Subject: [PATCH] ovs-thread: Set stacksize to 1M @@ -11,11 +11,11 @@ http://permalink.gmane.org/gmane.linux.network.openvswitch.general/5831 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> --- - lib/ovs-thread.c | 13 +++++++++++++ - 1 file changed, 13 insertions(+) + lib/ovs-thread.c | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) diff --git a/lib/ovs-thread.c b/lib/ovs-thread.c -index fe6fb43..0522242 100644 +index fe6fb43..8013220 100644 --- a/lib/ovs-thread.c +++ b/lib/ovs-thread.c @@ -32,6 +32,9 @@ @@ -36,7 +36,7 @@ index fe6fb43..0522242 100644 int error; forbid_forking("multiple threads exist"); -@@ -350,6 +354,15 @@ ovs_thread_create(const char *name, void *(*start)(void *), void *arg) +@@ -350,10 +354,21 @@ ovs_thread_create(const char *name, void *(*start)(void *), void *arg) aux->arg = arg; ovs_strlcpy(aux->name, name, sizeof aux->name); @@ -52,6 +52,12 @@ index fe6fb43..0522242 100644 error = pthread_create(&thread, NULL, ovsthread_wrapper, aux); if (error) { ovs_abort(error, "pthread_create failed"); + } ++ pthread_attr_destroy(&attr); ++ + return thread; + } + -- 2.1.0 |