From owner-cvs-src Mon Mar 10 21:45:28 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 959AA37B401; Mon, 10 Mar 2003 21:45:26 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-52.dsl.lsan03.pacbell.net [63.207.60.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99DE143F75; Mon, 10 Mar 2003 21:45:25 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 1A1C466D6A; Mon, 10 Mar 2003 21:45:25 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id ECD9889E; Mon, 10 Mar 2003 21:45:24 -0800 (PST) Date: Mon, 10 Mar 2003 21:45:24 -0800 From: Kris Kennaway To: David Xu Cc: Alfred Perlstein , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern kern_thread.c subr_trap.c Message-ID: <20030311054524.GA78209@rot13.obsecurity.org> References: <200303110259.h2B2xor5078625@repoman.freebsd.org> <20030311051206.GZ4145@elvis.mu.org> <005101c2e78f$b85d0a40$f001a8c0@davidw2k> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline In-Reply-To: <005101c2e78f$b85d0a40$f001a8c0@davidw2k> User-Agent: Mutt/1.4i Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 11, 2003 at 01:33:15PM +0800, David Xu wrote: > > > Fix signal delivering bug for threaded process. > >=20 > > Details, while not manditory are encouraged. See a typical > > commit by Dr. Mckusick. > >=20 > Orignal code would suspend an already suspended thread, > if user presses ^Z while a threaded program is running. Also > there is a race between job control and thread_exit(), the=20 > new code tests job control requesting before thread exits, > in wait() syscall, be sure to check process is fully stopped > before parent proc thinks child was stopped, this avoids > a later SIGCHILD and returns STOPPED status twice > for a threaded child proc. Could you force-commit this expanded explanation as a followup? Kris --2fHTh5uZTiUOsy+g Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+bXf0Wry0BWjoQKURAqMAAJ47kC1rDmVFVXVqyETuiUj/hSfF2gCg870e A3A4zVEyu4oYiMAtrdBMXBw= =orAR -----END PGP SIGNATURE----- --2fHTh5uZTiUOsy+g-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message