diff options
author | Andy Wingo <wingo@pobox.com> | 2012-02-08 19:57:41 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2012-02-17 12:11:14 +0100 |
commit | 6a97b1f93aace5c7c976aef51d36b3ae9cfd5630 (patch) | |
tree | d62914e464bb680663453931973aef3cb4e187b5 /libguile/strings.c | |
parent | 2f745b64a1eb06e9e175a1b497d5270bebff9097 (diff) | |
download | guile-6a97b1f93aace5c7c976aef51d36b3ae9cfd5630.tar.gz |
install pthread_atfork handlers for guile's static mutexen
* libguile/async.c:
* libguile/deprecation.c:
* libguile/fluids.c:
* libguile/gc.c:
* libguile/instructions.c:
* libguile/ports.c:
* libguile/posix.c:
* libguile/strings.c:
* libguile/threads.c: Use the SCM_PTHREAD_ATFORK_LOCK_STATIC_MUTEX
mechanism to lock a number of static mutexen.
Diffstat (limited to 'libguile/strings.c')
-rw-r--r-- | libguile/strings.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/strings.c b/libguile/strings.c index 961705782..c2edcd70a 100644 --- a/libguile/strings.c +++ b/libguile/strings.c @@ -226,6 +226,7 @@ narrow_stringbuf (SCM buf) } scm_i_pthread_mutex_t stringbuf_write_mutex = SCM_I_PTHREAD_MUTEX_INITIALIZER; +SCM_PTHREAD_ATFORK_LOCK_STATIC_MUTEX (stringbuf_write_mutex); /* Copy-on-write strings. |