Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2002 18:51:59 -0400
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Brian Feldman <green@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   Re: PERFORCE change 12837 for review 
Message-ID:  <200206132251.g5DMpxX56277@green.bikeshed.org>
In-Reply-To: Your message of "Thu, 13 Jun 2002 11:00:55 PDT." <200206131800.g5DI0tp46864@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Feldman <green@FreeBSD.org> wrote:
> http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12837
> 
> Change 12837 by green@green_laptop_1 on 2002/06/13 11:00:16
> 
> 	Make zombie_thread_lock back into a spin lock and remove the
> 	condition where it could sleep; then, make the kernel actually
> 	able to boot by adding it to witness's lock order list!!!

I'm still having some problems, though.  Try this test case:

#include <sys/types.h>
#include <sys/wait.h>

#include <err.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

int
main()
{
	pid_t forkedpid, wpid;
	int status;

	forkedpid = fork();
	if (forkedpid == 0) {
		printf("child %d pausing\n", (int)getpid());
		sleep(1);
		printf("child %d raising TSTP\n", (int)getpid());
		raise(SIGTSTP);
		printf("child %d raising STOP\n", (int)getpid());
		raise(SIGSTOP);
		printf("child %d exiting\n", (int)getpid());
		exit(0);
	}
	printf("parent %d waiting for child %d\n", (int)getpid(),
	    (int)forkedpid);
	wpid = waitpid(forkedpid, &status, 0);
	if (wpid == -1)
		err(1, "waitpid");
	printf("child wait code: %#x\n", status);
	kill(forkedpid, SIGKILL);
	exit(0);
}


-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org  <> bfeldman@tislabs.com      \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206132251.g5DMpxX56277>