[net.sources] Hack for Sys V Rel 2

me%brandeis.csnet@csnet-relay.arpa (Elias Israel) (07/11/85)

	I seem to have ported hack over to SVR2 without much difficulty
	(all the real work is in hack.tty.c) but I have one final bug
	that I could use some help with. Perhaps someone else has already
	seen/fixed this:

	It seems that when hack gets interrupted (via ^C from the keyboard)
	the approriate routine gets called and you get the little message
	"Really Quit?" as you should. It even reads the next character 
	(the "y" or "n") as the response for the question. The problem is
	that any subsequent reads (assuming that you answer "n") will
	fail and hack exits and prints the error message "End of Input?".

	I have looked at the code and can find no obvious reason for this
	(which doesn't mean the reason isn't obvious anyway, I'm still
	a little new to SysV, I'm really a BSD hacker) Does anyone have an
	idea about this bug?

	Elias Israel at Brandeis University

	( me%brandeis.csnet@csnet-relay )	"That's Me!"


--------------------------------

"I saw a spider hop across my desk and into my terminal just now"

"That bad, huh?"

"Yea, I'm goin' home.  When the bugs start crawlin' around your office,
 I say its time to give up"

meissner@rtp47.UUCP (Michael Meissner) (07/17/85)

Sorry for the follow-up, rather than mail, other users from this site have
had problems mailing to ARPA-land.

Sounds like your problem is the stdio library is getting an error about
an interrupted read, and is closing down the I/O.  Try a clearerr on stdin.

	Michael Meissner
	Data General Corporation
	...{ ihnp4, decvax }!mcnc!rti-sel!rtp47!meissner