From owner-freebsd-current Wed Aug 14 5:59:20 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0853437B400 for ; Wed, 14 Aug 2002 05:59:16 -0700 (PDT) Received: from dilbert.robbins.dropbear.id.au (005.a.006.mel.iprimus.net.au [210.50.44.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84D2843E70 for ; Wed, 14 Aug 2002 05:59:13 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (cw7c7znwan9rbu29@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3) with ESMTP id g7ECx7KF061125; Wed, 14 Aug 2002 22:59:07 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3/Submit) id g7ECx4kL061123; Wed, 14 Aug 2002 22:59:04 +1000 (EST) Date: Wed, 14 Aug 2002 22:59:04 +1000 From: Tim Robbins To: Terry Lambert Cc: current@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern kern_sig.c (fwd) Message-ID: <20020814225904.A60537@dilbert.robbins.dropbear.id.au> References: <20020813233813.77899.qmail@web20907.mail.yahoo.com> <3D599E84.1AF6FEB4@mindspring.com> <20020814150238.B40787@dilbert.robbins.dropbear.id.au> <3D59FE8E.298A4AE5@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D59FE8E.298A4AE5@mindspring.com>; from tlambert2@mindspring.com on Tue, Aug 13, 2002 at 11:54:06PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Aug 13, 2002 at 11:54:06PM -0700, Terry Lambert wrote: > Tim Robbins wrote: > > On Tue, Aug 13, 2002 at 05:04:20PM -0700, Terry Lambert wrote: > > > Both different reports have been from Tim Robbins. It may > > > be that he has a local problem, and that his local problem > > > is greatly confusing this discussion. > > > > Unfortunately, this is not a local problem -- I can reproduce it locally > > (i386, world/kernel from yesterday), on panther.freebsd.org (sparc64, kernel > > built July 19), and beast.freebsd.org (alpha, also built July 19). I cannot > > reproduce it on ref5 (i386, built July 1). > > If you update to the very most recent current, do the problems > occur? It's currently August 13th, which means that you are a > month behind on the machines with the problem, and a month and > a half behind on the other. The kernel/world I am running locally is less than 24 hours old. > > If both problems still occur with the most recent current, do > they go away if you back out *just* the PAM changes? This has nothing to do with PAM. Here is a simple program which behaves differently between 4.6-RELEASE and 5.0-CURRENT. I don't know which of the two behaviours is correct. #include #include #include #include #include #include #include int main(int argc, char *argv[]) { pid_t pid; int status; switch (pid = vfork()) { case -1: err(1, "fork"); case 0: execl("/bin/csh", "csh", NULL); err(1, "csh"); default: fprintf(stderr, "(waiter) waiting\n"); while (waitpid(pid, &status, WUNTRACED) != -1 && WIFSTOPPED(status)) { fprintf(stderr, "(waiter) stopping ourself\n"); killpg(0, SIGSTOP); fprintf(stderr, "(waiter) continuing child\n"); killpg(pid, SIGCONT); fprintf(stderr, "(waiter) waiting\n"); } } return (0); } %% 4.6.1-RELEASE-p10, OpenBSD 3.0: %set prompt="root% " root% ./waiter (waiter) waiting %suspend Suspended root% fg ./waiter % 5.0-CURRENT built August 14 (today): %set prompt="root% " root% ./waiter (waiter) waiting %suspend Suspended root% fg ./waiter %(waiter) stopping ourself Suspended (signal) root% Linux behaves differently to both, but the change in behaviour does not seem to make it stop working. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message