diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-01-27 20:21:07 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-01-27 20:21:07 +0000 |
| commit | 4158244cc0ddfd21500ac1253f2986c7a6f36ccf (patch) | |
| tree | 6693cf089d6a84e18bda8baad848027afdecf714 | |
| parent | a87265d6088bd2549b389045591d98fcb47b9da0 (diff) | |
Notes
| -rw-r--r-- | sys/sys/proc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 674d5160b486..173ce9975850 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -719,9 +719,11 @@ MALLOC_DECLARE(M_ZOMBIE); } #define STOPEVENT(p, e, v) do { \ - PROC_LOCK(p); \ - _STOPEVENT((p), (e), (v)); \ - PROC_UNLOCK(p); \ + if ((p)->p_stops & (e)) { \ + PROC_LOCK(p); \ + stopevent((p), (e), (v)); \ + PROC_UNLOCK(p); \ + } \ } while (0) #define _STOPEVENT(p, e, v) do { \ PROC_LOCK_ASSERT(p, MA_OWNED); \ |
