From owner-cvs-all Mon Mar 10 21:33:23 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 843DB37B404; Mon, 10 Mar 2003 21:33:20 -0800 (PST) Received: from mail.viasoft.com.cn (ip-167-164-97-218.anlai.com [218.97.164.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6098943FA3; Mon, 10 Mar 2003 21:32:57 -0800 (PST) (envelope-from davidxu@viatech.com.cn) Received: from davidw2k (davidlnx.viasoft.com.cn [192.168.1.240]) by mail.viasoft.com.cn (8.9.3/8.9.3) with SMTP id NAA05586; Tue, 11 Mar 2003 13:58:54 +0800 Message-ID: <005101c2e78f$b85d0a40$f001a8c0@davidw2k> From: "David Xu" To: "Alfred Perlstein" Cc: , , References: <200303110259.h2B2xor5078625@repoman.freebsd.org> <20030311051206.GZ4145@elvis.mu.org> Subject: Re: cvs commit: src/sys/kern kern_thread.c subr_trap.c Date: Tue, 11 Mar 2003 13:33:15 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message -----=20 From: "Alfred Perlstein" To: "David Xu" Cc: ; ; = Sent: Tuesday, March 11, 2003 1:12 PM Subject: Re: cvs commit: src/sys/kern kern_thread.c subr_trap.c > * David Xu [030310 18:59] wrote: > > davidxu 2003/03/10 18:59:50 PST > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > sys/kern kern_thread.c subr_trap.c=20 > > Log: > > 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. > --=20 > -Alfred Perlstein [alfred@freebsd.org] > 'Instead of asking why a piece of software is using "1970s = technology," > start asking why software is ignoring 30 years of accumulated = wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message