From owner-cvs-all Mon May 7 11: 7:35 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D85F737B422; Mon, 7 May 2001 11:07:29 -0700 (PDT) (envelope-from knu@FreeBSD.org) Received: (from knu@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f47I7TB61684; Mon, 7 May 2001 11:07:29 -0700 (PDT) (envelope-from knu) Message-Id: <200105071807.f47I7TB61684@freefall.freebsd.org> From: Akinori MUSHA Date: Mon, 7 May 2001 11:07:29 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/uthread uthread_fork.c src/sys/kern kern_fork.c kern_sig.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG knu 2001/05/07 11:07:29 PDT Modified files: lib/libc_r/uthread uthread_fork.c sys/kern kern_fork.c kern_sig.c Log: 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 Tested by: knu, GOTOU Yuuzou , and some other people Not objected by: hackers MFC in: 3 days Revision Changes Path 1.25 +2 -12 src/lib/libc_r/uthread/uthread_fork.c 1.111 +2 -2 src/sys/kern/kern_fork.c 1.118 +2 -1 src/sys/kern/kern_sig.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message