<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libpthread/thread/thr_sig.c, branch release/7.3.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F7.3.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F7.3.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2007-10-09T14:16:39Z</updated>
<entry>
<title>Repo copy libpthreads to libkse.</title>
<updated>2007-10-09T14:16:39Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2007-10-09T14:16:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=aaffe2b157f65a534c955edb61c88aa1b764266d'/>
<id>urn:sha1:aaffe2b157f65a534c955edb61c88aa1b764266d</id>
<content type='text'>
This introduces the WITHOUT_LIBKSE nob,
and changes WITHOUT_LIBPTHREADS to mean with neither threading libs.
Approved by:	re(kensmith)
</content>
</entry>
<entry>
<title>Remove 3rd clause, renumber, ok per email</title>
<updated>2007-01-12T07:26:21Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-12T07:26:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fed32d75449d7d05afdd7ddb7703bfa69a3027f3'/>
<id>urn:sha1:fed32d75449d7d05afdd7ddb7703bfa69a3027f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>o Remove a cruft prevented libpthread sigaction(2) wrapper to</title>
<updated>2006-06-09T14:23:40Z</updated>
<author>
<name>Maxim Konovalov</name>
<email>maxim@FreeBSD.org</email>
</author>
<published>2006-06-09T14:23:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0295184c7e77df0e56f06096b4280a4cc6064b58'/>
<id>urn:sha1:0295184c7e77df0e56f06096b4280a4cc6064b58</id>
<content type='text'>
do its work for SIGINFO.  Always install libpthread signal handler
wrapper for SIGINFO even if user SIG_IGN's or SIG_DFL's it.

SIGINFO has a special meaning for libpthread: when LIBPTHREAD_DEBUG
enviroment variable defined it is used for dumping an information
about threads to /tmp/.

Reported by:	mi
Reviewed by:	deischen
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Only catch SIGINFO (for dumping thread states) when LIBPTHREAD_DEBUG</title>
<updated>2006-03-06T05:02:28Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2006-03-06T05:02:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4f0d668324e97c2ce556dd4d6d0a7189e4bd155c'/>
<id>urn:sha1:4f0d668324e97c2ce556dd4d6d0a7189e4bd155c</id>
<content type='text'>
is defined in the environment.

Requested by:	jmg &amp; a few others
</content>
</entry>
<entry>
<title>Use a generic way to back threads out of wait queues when handling</title>
<updated>2004-12-18T18:07:37Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2004-12-18T18:07:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=843d4004b367db61428fa1cbf611cdbd2791d672'/>
<id>urn:sha1:843d4004b367db61428fa1cbf611cdbd2791d672</id>
<content type='text'>
signals instead of having more intricate knowledge of thread state
within signal handling.

Simplify signal code because of above (by David Xu).

Use macros for libpthread usage of pthread_cleanup_push() and
pthread_cleanup_pop().  This removes some instances of malloc()
and free() from the semaphore and pthread_once() implementations.

When single threaded and forking(), make sure that the current
thread's signal mask is inherited by the forked thread.

Use private mutexes for libc and libpthread.  Signals are
deferred while threads hold private mutexes.  This fix also
breaks www/linuxpluginwrapper; a patch that fixes it is at
http://people.freebsd.org/~deischen/kse/linuxpluginwrapper.diff

Fix race condition in condition variables where handling a
signal (pthread_kill() or kill()) may not see a wakeup
(pthread_cond_signal() or pthread_cond_broadcast()).

In collaboration with:	davidxu
</content>
</entry>
<entry>
<title>Save cancelflags in signal frame, this fixes a problem that</title>
<updated>2004-11-01T10:49:34Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2004-11-01T10:49:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4dd715ced2c947807f69cfdb2dab716bf0731962'/>
<id>urn:sha1:4dd715ced2c947807f69cfdb2dab716bf0731962</id>
<content type='text'>
a thread in pthread_cond_wait handled a signal can no longer
be canceled.

Reviewed by: deischen
</content>
</entry>
<entry>
<title>1. Move thread list flags into new separate member, and atomically</title>
<updated>2004-10-23T23:28:36Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2004-10-23T23:28:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b4f9f84b962fcd8c899067dbfa2976254213d9df'/>
<id>urn:sha1:b4f9f84b962fcd8c899067dbfa2976254213d9df</id>
<content type='text'>
   put DEAD thread on GC list, this closes a race between pthread_join
   and thr_cleanup.
2. Introduce a mutex to protect tcb initialization, tls allocation and
   deallocation code in rtld seems no lock protection or it is broken,
   under stress testing, memory is corrupted.

Reviewed by: deischen
patch partly provided by: deischen
</content>
</entry>
<entry>
<title>Decrease reference count if we won't use the thread, this avoids memory</title>
<updated>2004-10-21T03:42:24Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2004-10-21T03:42:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=39454d368fe5970ee9eb90bd322b28820dd61841'/>
<id>urn:sha1:39454d368fe5970ee9eb90bd322b28820dd61841</id>
<content type='text'>
leak under some cases.
</content>
</entry>
<entry>
<title>Let debugger check signal, make SIGINFO works.</title>
<updated>2004-07-13T22:52:11Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2004-07-13T22:52:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c7f5b2dbc5571635c3ff2d44ef733beddda88e8f'/>
<id>urn:sha1:c7f5b2dbc5571635c3ff2d44ef733beddda88e8f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Check pending signals, if there is signal will be unblocked by</title>
<updated>2004-06-12T07:40:01Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2004-06-12T07:40:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5321c2a9b02e061e8f5afe4538634523e9e37927'/>
<id>urn:sha1:5321c2a9b02e061e8f5afe4538634523e9e37927</id>
<content type='text'>
sigsuspend, thread shouldn't wait, in old code, it may be
ignored.
When a signal handler is invoked in sigsuspend, thread gets
two different signal masks, one is in thread structure,
sigprocmask() can retrieve it, another is in ucontext
which is a third parameter of signal handler, the former is
the result of sigsuspend mask ORed with sigaction's sa_mask
and current signal, the later is the mask in thread structure
before sigsuspend is called. After signal handler is called,
the mask in ucontext should be copied into thread structure,
and becomes CURRENT signal mask, then sigsuspend returns to
user code.

Reviewed by: deischen
Tested by: Sean McNeil &lt;sean@mcneil.com&gt;
</content>
</entry>
</feed>
