1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-08 05:25:12 +00:00
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
..
2001-12-16 17:21:16 +00:00
2002-02-07 20:58:47 +00:00
2002-02-07 20:58:47 +00:00
2001-09-12 08:38:13 +00:00
2002-02-20 21:25:44 +00:00
2001-09-12 08:38:13 +00:00
2001-09-12 08:38:13 +00:00
2002-02-07 20:58:47 +00:00
2001-11-04 11:56:22 +00:00
2001-09-12 08:38:13 +00:00
2002-02-23 01:42:13 +00:00
2002-02-20 21:25:44 +00:00
2002-02-10 22:07:41 +00:00
2001-12-29 07:13:47 +00:00
2001-12-29 07:13:47 +00:00
2001-09-12 08:38:13 +00:00
2001-12-11 10:21:26 +00:00
2002-02-23 11:12:57 +00:00
2002-02-23 11:12:57 +00:00
2002-02-23 11:12:57 +00:00
2002-01-14 19:45:03 +00:00
2002-02-23 11:12:57 +00:00