Seigo Tanimura f591779bb5 Lock struct pgrp, session and sigio.
New locks are:

- pgrpsess_lock which locks the whole pgrps and sessions,
- pg_mtx which protects the pgrp members, and
- s_mtx which protects the session members.

Please refer to sys/proc.h for the coverage of these locks.

Changes on the pgrp/session interface:

- pgfind() needs the pgrpsess_lock held.

- The caller of enterpgrp() is responsible to allocate a new pgrp and
  session.

- Call enterthispgrp() in order to enter an existing pgrp.

- pgsignal() requires a pgrp lock held.

Reviewed by:	jhb, alfred
Tested on:	cvsup.jp.FreeBSD.org
		(which is a quad-CPU machine running -current)
2002-02-23 11:12:57 +00:00
..
2002-01-08 06:47:02 +00:00
2001-04-16 13:20:39 +00:00
2002-02-22 09:18:46 +00:00
2001-12-19 13:32:21 +00:00
2001-11-19 06:42:11 +00:00
2002-01-08 20:03:13 +00:00
2001-11-15 07:52:49 +00:00
2001-10-09 15:30:19 +00:00
2001-11-03 08:32:28 +00:00
2001-11-04 09:09:41 +00:00
2002-01-08 06:47:55 +00:00
2002-02-12 05:32:58 +00:00
2002-02-04 15:55:21 +00:00
2002-02-04 14:01:27 +00:00
2001-02-06 11:21:58 +00:00
2001-07-02 05:29:58 +00:00
2001-02-06 11:21:58 +00:00
2001-11-04 08:58:22 +00:00
2002-02-10 21:42:44 +00:00
2001-09-12 08:38:13 +00:00
2001-06-15 00:19:43 +00:00
2002-02-20 20:13:13 +00:00
2001-12-15 12:32:23 +00:00
2002-01-10 00:09:21 +00:00
2001-11-04 08:54:15 +00:00
2001-09-12 08:38:13 +00:00
2001-11-15 07:52:49 +00:00
2002-01-23 01:11:52 +00:00
2002-01-14 00:13:45 +00:00
2002-02-22 09:18:46 +00:00
2001-09-12 08:38:13 +00:00