diff options
| author | Daniel Beal <git@danb.email> | 2018-10-01 21:50:24 -0700 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-15 13:58:55 +0000 |
| commit | d4fa6fe881864b95c1d42e67db58e3260eed105b (patch) | |
| tree | e9be20d33bff083d5243f8d823e4b7d7ce69580c /testing/openttd/fix-pthread-stacksize.patch | |
| parent | b3860fe0f36d76d786ed9611daccecb5284add0f (diff) | |
| download | aports-d4fa6fe881864b95c1d42e67db58e3260eed105b.tar.bz2 aports-d4fa6fe881864b95c1d42e67db58e3260eed105b.tar.xz | |
testing/openttd: fix crash on save due to insufficient stacksize
Diffstat (limited to 'testing/openttd/fix-pthread-stacksize.patch')
| -rw-r--r-- | testing/openttd/fix-pthread-stacksize.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/openttd/fix-pthread-stacksize.patch b/testing/openttd/fix-pthread-stacksize.patch new file mode 100644 index 0000000000..51a3168ce1 --- /dev/null +++ b/testing/openttd/fix-pthread-stacksize.patch @@ -0,0 +1,15 @@ +Only in openttd-1.8.0-mod: src/saveload/.saveload.cpp.swp +--- openttd-1.8.0/src/thread/thread_pthread.cpp ++++ openttd-1.8.0-mod/src/thread/thread_pthread.cpp +@@ -38,7 +38,10 @@ + self_destruct(self_destruct), + name(name) + { +- pthread_create(&this->thread, NULL, &stThreadProc, this); ++ pthread_attr_t attrs; ++ pthread_attr_init(&attrs); ++ pthread_attr_setstacksize(&attrs, 1048576); ++ pthread_create(&this->thread, &attrs, &stThreadProc, this); + } + + /* virtual */ bool Exit() |
