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 <sys/types.h>
#include <sys/wait.h>
#include <err.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>

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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to