Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2003 13:33:15 +0800
From:      "David Xu" <davidxu@viatech.com.cn>
To:        "Alfred Perlstein" <bright@mu.org>
Cc:        <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:  <005101c2e78f$b85d0a40$f001a8c0@davidw2k>
References:  <200303110259.h2B2xor5078625@repoman.freebsd.org> <20030311051206.GZ4145@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----=20
From: "Alfred Perlstein" <bright@mu.org>
To: "David Xu" <davidxu@FreeBSD.org>
Cc: <src-committers@FreeBSD.org>; <cvs-src@FreeBSD.org>; =
<cvs-all@FreeBSD.org>
Sent: Tuesday, March 11, 2003 1:12 PM
Subject: Re: cvs commit: src/sys/kern kern_thread.c subr_trap.c


> * David Xu <davidxu@FreeBSD.org> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005101c2e78f$b85d0a40$f001a8c0>