summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sig.c
Commit message (Collapse)AuthorAgeFilesLines
* Implementation of an additional state called SIGWAIT (with the previousjb1998-09-301-44/+42
| | | | | | one renamed to SIGSUSPEND) to fix sigwait(). Submitted by: Daniel M. Eischen <eischen@vigrid.com>
* Removed unused variables.alex1998-09-071-4/+0
|
* Back out most of the last commit. It created problems with sigpause.jb1998-08-261-26/+1
|
* Fix for sigwait problem.jb1998-08-251-1/+26
| | | | | Submitted by: Daniel M. Eischen <eischen@vigrid.com> PR: misc/7039
* Don't allow a SIGCHLD to wake up a thread if the process has the defaultjb1998-06-171-6/+9
| | | | | signal handler installed for SIGCHLD. The ACE MT_SOCK_Test was hanging as the result of being interrupted when it didn't expect to be.
* If a thread is waiting on a child process to complete, the SIGCHLDjb1998-06-171-1/+20
| | | | | | signal can arrive before the thread is woken from it's wait4. In this case, don't return an EINTR, just set the thread state to running and the wait4 wrapper will loop and get the exit status of the process.
* Remove SA_RESTART from the signal dispatch in user-space since thisjb1998-06-101-92/+39
| | | | seems to be tripping up a lot of applications.
* Implement compile time debug support instead of tracking file name andjb1998-06-091-10/+10
| | | | | | | line number every time a file descriptor is locked. This looks like a big change but it isn't. It should reduce the size of libc_r and make it run slightly faster.
* I got the last commit back to front.jb1998-06-061-3/+3
|
* Fix the signal behaviour for internal states which set the threadjb1998-06-051-6/+51
| | | | | state to running despite the SA_RESTART flag which is really just for syscalls.
* Don't restart a syscall when a SIGCHLD is received by a thread waitingjb1998-05-311-1/+6
| | | | on a child process.
* Change signal model to match POSIX (i.e. one set of signal handlersjb1998-04-291-72/+227
| | | | | | | | | | | | | | | | | | | | for the process, not a separate set for each thread). By default, the process now only has signal handlers installed for SIGVTALRM, SIGINFO and SIGCHLD. The thread kernel signal handler is installed for other signals on demand. This means that SIG_IGN and SIG_DFL processing is now left to the kernel, not the thread kernel. Change the signal dispatch to no longer use a signal thread, and call the signal handler using the stack of the thread that has the signal pending. Change the atomic lock method to use test-and-set asm code with a yield if blocked. This introduces separate locks for each type of object instead of blocking signals to prevent a context switch. It was this blocking of signals that caused the performance degradation the people have noted. This is a *big* change!
* Submitted by: John Birrelljulian1997-02-051-1/+1
| | | | uthreads update from the author.
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>julian1996-08-201-5/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
* Reviewed by: julianjulian1996-01-221-0/+128
Submitted by: john birrel One version of the pthreads library another will follow with differnt actions under some cases.. not QUITE complete
OpenPOWER on IntegriCloud