diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-27 17:22:30 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-27 17:22:30 +0000 |
commit | 3a7dab48bd395f66d9af79696af0534c63ae92f2 (patch) | |
tree | 90ed0c9bba68d85b799f92f18db6198aaf57e2da /sys/kern | |
parent | ba5df1ca426fe7471a6c15b2181c3ea759b4acb9 (diff) | |
download | FreeBSD-src-3a7dab48bd395f66d9af79696af0534c63ae92f2.zip FreeBSD-src-3a7dab48bd395f66d9af79696af0534c63ae92f2.tar.gz |
Use pause() rather than tsleep() on explicit global dummy variables.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |