freebsd-skq/lib/libpthread
Akinori MUSHA 3b26be6ae1 Properly copy the P_ALTSTACK flag in struct proc::p_flag to the child
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
2001-05-07 18:07:29 +00:00
..
arch $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
man MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
sys $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
test -pthread -> -lc_r 2001-01-24 13:41:04 +00:00
thread Properly copy the P_ALTSTACK flag in struct proc::p_flag to the child 2001-05-07 18:07:29 +00:00
Makefile Add weak definitions for wrapped system calls. In general: 2001-01-24 13:03:38 +00:00