From owner-cvs-src Mon Mar 10 22: 1:48 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 1DB8F37B401; Mon, 10 Mar 2003 22:01:46 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7767E43FB1; Mon, 10 Mar 2003 22:01:45 -0800 (PST) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h2B61j0U096267; Mon, 10 Mar 2003 22:01:45 -0800 (PST) (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2B61jQq096266; Mon, 10 Mar 2003 22:01:45 -0800 (PST) Message-Id: <200303110601.h2B61jQq096266@repoman.freebsd.org> From: David Xu Date: Mon, 10 Mar 2003 22:01:44 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys proc.h src/sys/kern kern_exit.c kern_sig.c kern_thread.c X-FreeBSD-CVS-Branch: HEAD 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 davidxu 2003/03/10 22:01:44 PST FreeBSD src repository Modified files: sys/sys proc.h sys/kern kern_exit.c kern_sig.c kern_thread.c Log: This is a force-commit for: kern_sig.c 1.215 kern_thread.c 1.103 kern_exit.c 1.199 proc.h 1.302 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 new code tests job control requesting before thread exits, in wait() syscall, be sure to check child process is fully stopped, this avoids a later SIGCHILD and returns STOPPED status twice for a threaded child proc. A thread_stopped() function is added for common code in several places. Revision Changes Path 1.200 +0 -0 src/sys/kern/kern_exit.c 1.216 +0 -0 src/sys/kern/kern_sig.c 1.106 +0 -0 src/sys/kern/kern_thread.c 1.303 +0 -0 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message