Date: Thu, 15 Oct 1998 07:59:51 -0600 (MDT) From: Darren Whittaker <djw@sage1.sagecorp.com> To: Mike Smith <mike@smith.net.au> Cc: freebsd-current@FreeBSD.ORG, john.young@openmarket.com Subject: Re: problem in 3.0 Message-ID: <Pine.SOL.3.93.981015075604.15545B-100000@sage1.sagecorp.com> In-Reply-To: <199810150127.SAA00583@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Oct 1998, Mike Smith wrote: > > The code appeared to work until I set buf[0] = '\0'; at the start of the > > loop, then only one message was displayed. Since err displays to std error > > and I have to run this program from a browers I did not see any error > > messages. > > I specifically asked what the exact code below does when built as a > program and run on your system. > > If setting buf[0] to 0 kills all but the first output, you should be > checking the return from fgets, as it's likely that it's not returning > anything. You are right, when I check the return value of fgets, it's NULL, and feof() returns a non-zero value meaning at end of file. So is this more of an I/O problem than a popen error? -Darren PS Thanks for your help ------------------ Darren Whittaker Senior Software Engineer Small Enterprise Group Open Market, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.93.981015075604.15545B-100000>