diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-02-07 11:07:10 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-02-07 11:07:10 +0000 |
commit | 83e58a43039be6eb362c5c7ec8fa81c1678c80a9 (patch) | |
tree | eeb0aa207e8309b47d05c115d26565f6675129f6 /community/mpd/stacksize.patch | |
parent | 792b7175549cadf6db76cb1c7cfc9a53a70a479a (diff) | |
download | aports-83e58a43039be6eb362c5c7ec8fa81c1678c80a9.tar.bz2 aports-83e58a43039be6eb362c5c7ec8fa81c1678c80a9.tar.xz |
community/mpd: upgrade to 0.20.16
Diffstat (limited to 'community/mpd/stacksize.patch')
-rw-r--r-- | community/mpd/stacksize.patch | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/community/mpd/stacksize.patch b/community/mpd/stacksize.patch index 26d6f78079..291a2f22d7 100644 --- a/community/mpd/stacksize.patch +++ b/community/mpd/stacksize.patch @@ -1,19 +1,17 @@ -diff --git a/src/thread/Thread.cxx b/src/thread/Thread.cxx -index 2932d47..fd1f3ce 100644 ---- a/src/thread/Thread.cxx -+++ b/src/thread/Thread.cxx -@@ -43,8 +43,12 @@ Thread::Start(void (*_f)(void *ctx), void *_ctx, Error &error) - #ifndef NDEBUG - creating = true; - #endif -- +--- ./src/thread/Thread.cxx.orig ++++ ./src/thread/Thread.cxx +@@ -35,8 +35,12 @@ + if (handle == nullptr) + throw MakeLastError("Failed to create thread"); + #else - int e = pthread_create(&handle, nullptr, ThreadProc, this); +- + pthread_attr_t attr, *attrptr = nullptr; + if ((pthread_attr_init(&attr) == 0) -+ && (pthread_attr_setstacksize(&attr, 1024*1024) == 0)) { ++ && (pthread_attr_setstacksize(&attr, 1024*1024) == 0)) { + attrptr = &attr; + } + int e = pthread_create(&handle, attrptr, ThreadProc, this); - - if (e != 0) { - #ifndef NDEBUG + if (e != 0) + throw MakeErrno(e, "Failed to create thread"); + #endif |