Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!cbosgd!osu-cis!tut!lvc
From: lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani)
Newsgroups: comp.lang.c,comp.unix.questions
Subject: Re: Why can't stdin from a file be read by an overlay?
Message-ID: <2963@tut.cis.ohio-state.edu>
Date: Tue, 8-Dec-87 00:15:04 EST
Article-I.D.: tut.2963
Posted: Tue Dec  8 00:15:04 1987
Date-Received: Sun, 13-Dec-87 10:32:40 EST
Organization: Ohio State Computer & Info Science
Lines: 11
Keywords: Unix,stdio
Summary: thanks for the ideas
Xref: mnetor comp.lang.c:5788 comp.unix.questions:5248

Thanks to everyone that sent me mail.  All I had to do was to add:

	if (!isatty(0))
		setbuf(stdin, (char *)0);

(as several of you suggested) before the program started reading,
and everything worked fine.

-- 
	Larry Cipriani AT&T Network Systems at
	cbosgd!osu-cis!tut!lvc Ohio State University