Commit graph

6 commits

Author SHA1 Message Date
Jo-Philipp Wich
926b68c15d motion: fix segmentation fault under musl libc
During startup, motion calls pthread_getspecific() through motion_log()
before pthread_key_create() has been called yet. This works on glibc and
uclibc but segfaults on musl because motion is relying on undefined
behaviour here.

Move the pthread initialization before motion_startup() so that
tls_key_threadnr is initialized when motion_log() is called.

Also enforce the use of strerror_r() on musl by defining XSI_STRERROR_R
on all non-glibc systems because the supposed replacement code is broken
and crashes on musl.

References:
http://www.lavrsen.dk/foswiki/bin/view/Motion/BugReport2015x09x30x203633

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-08 02:15:28 +02:00
Roger
e5d635e1ae motion: switch to master branch
This branch includes some important fixes vs. 3.4.0.

Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-11-05 10:46:53 -06:00
Roger
3d784bd3d3 motion: update and switch to recent fork
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-11-04 14:06:37 -06:00
Roger
f1f11a576b motion: remove outdated (?) patch
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-11-04 14:05:40 -06:00
Roger
b1955510cc motion: add myself as maintainer
Signed-off-by: Roger D rogerdammit@gmail.com
2014-07-28 20:52:23 -05:00
Roger
df02327dc1 motion: add from old packages
Signed-off-by: Roger D rogerdammit@gmail.com
2014-07-28 20:50:53 -05:00