diff options
author | peadar <peadar@FreeBSD.org> | 2006-12-18 17:08:07 +0000 |
---|---|---|
committer | peadar <peadar@FreeBSD.org> | 2006-12-18 17:08:07 +0000 |
commit | e3b0678e20f86a88c1169dc2c9b44658eb2a1e99 (patch) | |
tree | 740e6b1372b7d2d7072cb29a4756a0cbacd3bc70 /lib/libpthread/thread/thr_atfork.c | |
parent | d09381af38eb06f88b9e25758d7d6af2c8ea358b (diff) | |
download | FreeBSD-src-e3b0678e20f86a88c1169dc2c9b44658eb2a1e99.zip FreeBSD-src-e3b0678e20f86a88c1169dc2c9b44658eb2a1e99.tar.gz |
Clean bound and non-bound pthread structures consistently before
they become candidates for reuse. Without this fix, some of the
state from a thread structure's previous incarnation could interfere
with its new one. Specifically, a non-bound thread started as
"suspended" (see pthread_attr_setcreatesuspend_np()) might not get
scheduled at all when resumed, as the "active" flag would be set
spuriously.
Reviewed by: deischen@, davidxu@
MFC after: 1 week
Diffstat (limited to 'lib/libpthread/thread/thr_atfork.c')
0 files changed, 0 insertions, 0 deletions