trasz 29ba0a35f6 Stop treating system processes as special. This fixes panics
like the one triggered by this:

# kldload geom_vinum
# pwait `pgrep -S gv_worker` &
# kldunload geom_vinum

or this:

GEOM_JOURNAL: Shutting down geom gjournal 3464572051.
panic: destroying non-empty racct: 1 allocated for resource 6

which were tracked by jh@ to be caused by checking p->p_flag,
while it wasn't initialised yet.  Basically, during fork, the code
checked p_flag, concluded the process isn't marked as P_SYSTEM,
incremented the counter, and later on, when exiting, checked that
the process was marked as P_SYSTEM, and thus didn't decrement it.

Also, I believe there wasn't any good reason for checking P_SYSTEM
in the first place.

Tested by:	jh
2012-04-17 14:31:02 +00:00
..
2012-04-16 23:17:29 +00:00
2012-04-05 04:41:06 +00:00
2012-03-27 20:36:03 +00:00
2012-04-16 23:17:29 +00:00
2012-04-17 01:34:49 +00:00
2012-02-28 15:07:05 +00:00
2012-03-30 19:10:14 +00:00
2012-04-16 10:33:46 +00:00
2012-04-17 00:54:38 +00:00