From 3a7dab48bd395f66d9af79696af0534c63ae92f2 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 27 Feb 2007 17:22:30 +0000 Subject: Use pause() rather than tsleep() on explicit global dummy variables. --- sys/kern/kern_fork.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/kern/kern_fork.c') diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index fcdb29e..8f8bd36 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -82,8 +82,6 @@ struct fork_args { }; #endif -static int forksleep; /* Place for fork1() to sleep on. */ - /* * MPSAFE */ @@ -772,7 +770,7 @@ fail: thread_single_end(); PROC_UNLOCK(p1); } - tsleep(&forksleep, PUSER, "fork", hz / 2); + pause("fork", hz / 2); return (error); } -- cgit v1.1