system() using vfork() or posix_spawn() and libthr

Konstantin Belousov kostikbel at gmail.com
Wed Aug 15 17:46:14 UTC 2012


On Tue, Aug 14, 2012 at 11:15:06PM +0800, David Xu wrote:
> You are requiring the thread library to implement such a mutex
> and other locks, that after vfork(), the mutex and other lock types must
> still work across processes, the PTHREAD_PROCESS_PRIVATE type of
> mutex and other locks now need to work in a PTHREAD_PROCESS_SHARE
> mode.

In fact, yes. In my patch I achieve this by single-threading the parent,
which means that existing _PRIVATE mutexes are enough.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120815/f44e64c6/attachment.pgp


More information about the freebsd-hackers mailing list