summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_syscalls.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-02-14 11:47:40 +0000
committerkib <kib@FreeBSD.org>2015-02-14 11:47:40 +0000
commit1cd0dffdca6542739e3aa4c7e5221f0b28d076c4 (patch)
tree47b61a4da1fffb3bceaf6d23305c46c7acdbbb1f /lib/libthr/thread/thr_syscalls.c
parent45b91c251bda08108ccd388ff0cede277f29ff12 (diff)
downloadFreeBSD-src-1cd0dffdca6542739e3aa4c7e5221f0b28d076c4.zip
FreeBSD-src-1cd0dffdca6542739e3aa4c7e5221f0b28d076c4.tar.gz
Properly interpose libc spinlocks, was missed in r276630. In
particular, stdio locking was affected. Reported and tested by: "Matthew D. Fuller" <fullermd@over-yonder.net> Sponsored by: The FreeBSD Foundation MFC after: 3 days
Diffstat (limited to 'lib/libthr/thread/thr_syscalls.c')
-rw-r--r--lib/libthr/thread/thr_syscalls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_syscalls.c b/lib/libthr/thread/thr_syscalls.c
index 06b63c8..10fbad4 100644
--- a/lib/libthr/thread/thr_syscalls.c
+++ b/lib/libthr/thread/thr_syscalls.c
@@ -597,6 +597,8 @@ __thr_interpose_libc(void)
SLOT(wait4);
SLOT(write);
SLOT(writev);
+ SLOT(spinlock);
+ SLOT(spinunlock);
#undef SLOT
*(__libc_interposing_slot(
INTERPOS__pthread_mutex_init_calloc_cb)) =
OpenPOWER on IntegriCloud