| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
could cause deadlock after interruption due to a signal.
Reviewed by: deischen
|
|
|
|
|
|
|
| |
Do not detach canceled threads.
Reported by: Arno Klaassen <arno@heho.snv.jussieu.fr>
Collaboration with: deischen
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Reviewed by: ru
|
|
|
|
|
|
|
|
| |
be malloc()ed, but they are now allocated using mmap(), just as the
default-size stacks are. A separate cache of stacks is kept for
non-default-size stacks.
Collaboration with: deischen
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
a signal handler from the scheduler.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
| |
atomically:
1) Search _thread_list for the thread to join.
2) Search _dead_list for the thread to join.
3) Set the running thread as the joiner.
While we're at it, fix a race in the case where multiple threads try to
join on the same thread. POSIX says that the behavior of multiple joiners
is undefined, but the fix is cheap as a result of the other fix.
|
|
|
|
|
| |
Submitted by: Murray S. Kucherawy <msk@sendmail.com>
MFC after: 3 days
|
|
|
|
| |
Obtained from: OpenBSD
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
keep track of a joiner. POSIX only supports a single joiner, so this
simplification is acceptable.
At the same time, make sure to mark a joined thread as detached so that
its resources can be freed.
Reviewed by: deischen
PR: 24345
|
|
|
|
|
| |
PR: docs/27411
Submitted by: David Wimsey <dwimsey@rtci.com>
|
|
|
|
|
|
|
|
| |
there is no need to wake all waiters to assure that the highest priority
thread is run. As the semaphore code is written, there was no correctness
problem, but the change improves sem_post() performance.
Pointed out by: deischen
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
process on fork(2).
It is the supposed behavior stated in the manpage of sigaction(2), and
Solaris, NetBSD and FreeBSD 3-STABLE correctly do so.
The previous fix against libc_r/uthread/uthread_fork.c fixed the
problem only for the programs linked with libc_r, so back it out and
fix fork(2) itself to help those not linked with libc_r as well.
PR: kern/26705
Submitted by: KUROSAWA Takahiro <fwkg7679@mb.infoweb.ne.jp>
Tested by: knu, GOTOU Yuuzou <gotoyuzo@notwork.org>,
and some other people
Not objected by: hackers
MFC in: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
placed in any scheduling queue(s). The process of dispatching
signals to a thread can change its state which will attempt to add
or remove the thread from any scheduling queue to which it belongs.
This can break some assertions if the thread isn't in the queue(s)
implied by its state.
When adding dispatching a pending signal to a thread, be sure to
remove the signal from the threads set of pending signals.
PR: 27035
Tested by: brian
MFC in: 1 week
|
| |
|
|
|
|
| |
from libc.
|
|
|
|
|
| |
PR: 25110
Tested by: knu
|
|
|
|
|
| |
lists to free thread resources after a fork (in the child). Also
remember to free the dead thread list.
|
|
|
|
| |
one statement.
|
|
|
|
|
|
| |
instead of #pragma weak to create weak definitions.
Suggested by: bde
|
|
|
|
|
|
|
|
| |
moved in from libposix1e, and deactivate build of the soon-to-be-removed
libposix1e.
Approved by: rwatson
Obtained from: TrustedBSD Project
|
|
|
|
|
|
|
| |
descriptors.
Approved by: rwatson
Obtained from: TrustedBSD Project
|
|
|
|
|
|
|
|
|
| |
a "#pragma weak" directive linking the external symbol. This matches
the other pthread_* definitions, and ensures that users of this
function from within libc get the real version, not the stub.
Suggested by: deischen
Reviewed by: deischen, alfred
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
associated changes that had to happen to make this possible as well as
bugs fixed along the way.
Bring in required TLI library routines to support this.
Since we don't support TLI we've essentially copied what NetBSD
has done, adding a thin layer to emulate direct the TLI calls
into BSD socket calls.
This is mostly from Sun's tirpc release that was made in 1994,
however some fixes were backported from the 1999 release (supposedly
only made available after this porting effort was underway).
The submitter has agreed to continue on and bring us up to the
1999 release.
Several key features are introduced with this update:
Client calls are thread safe. (1999 code has server side thread
safe)
Updated, a more modern interface.
Many userland updates were done to bring the code up to par with
the recent RPC API.
There is an update to the pthreads library, a function
pthread_main_np() was added to emulate a function of Sun's threads
library.
While we're at it, bring in NetBSD's lockd, it's been far too
long of a wait.
New rpcbind(8) replaces portmap(8) (supporting communication over
an authenticated Unix-domain socket, and by default only allowing
set and unset requests over that channel). It's much more secure
than the old portmapper.
Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded
to support TI-RPC and to support IPV6.
Umount(8) is also fixed to unmount pathnames longer than 80 chars,
which are currently truncated by the Kernel statfs structure.
Submitted by: Martin Blapp <mb@imp.ch>
Manpage review: ru
Secure RPC implemented by: wpaul
|
|
|
|
|
|
|
|
| |
thread to become stranded and not placed in the run queue.
MFC Candidate
Reported by: tegge
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: 25300
Submitted by: Tom Pavel <pavel@alum.mit.edu> (in part)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
application to provide locking for I/O operations. This doesn't
break any of my tests, but the old behavior can be restored by
compiling with _FDLOCKS_ENABLED. This will eventually be removed
when it is obvious it does not cause any problems.
Remove most of flockfile implementation, with the exception of
flockfile_debug.
Make error messages more informational (submitted by Mike Heffner
<spock@techfour.net>, who's now known as mikeh@FreeBSD.org).
|
|
|
|
|
| |
PR: docs/23936
Submitted by: Garret Rooney <rooneg@rpi.edu>
|
| |
|
|
|
|
| |
Submitted by: Mike Heffner <mheffner@vt.edu>
|
|
|
|
|
|
| |
A make buildworld was done but not with the committed pthread_private.h.
Reported by: Manfred Antar <null@pozo.com>
|
|
|
|
|
|
| |
Add another check for thread library initialization (jdp, we
really need a way to get _thread_init called at program start
before any constructors are run).
|