Ed Schouten 1da7bb41ed Correct SIGTTIN handling.
In the old TTY layer, SIGTTIN was correctly handled like this:

	while (data should be read) {
		send SIGTTIN if not foreground process group
		read data
	}

In the new TTY layer, however, this behaviour was changed, based on a
false interpretation of the standard:

	send SIGTTIN if not foreground process group
	while (data should be read) {
		read data
	}

Correct this by pushing tty_wait_background() into the ttydisc_read_*()
functions.

Reported by:	koitsu
PR:		kern/173010
MFC after:	2 weeks
2012-10-25 09:05:21 +00:00
..
2012-08-16 13:01:56 +00:00
2012-08-17 02:47:16 +00:00
2012-08-28 19:30:29 +00:00
2012-08-22 20:01:57 +00:00
2012-08-11 23:48:39 +00:00
2012-09-04 23:16:55 +00:00
2012-09-14 21:28:56 +00:00
2012-08-17 02:47:16 +00:00
2012-10-25 09:05:21 +00:00
2012-10-25 09:05:21 +00:00
2012-08-15 22:12:01 +00:00