From owner-freebsd-current Wed Oct 14 09:16:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA14463 for freebsd-current-outgoing; Wed, 14 Oct 1998 09:16:33 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA14444 for ; Wed, 14 Oct 1998 09:16:31 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id JAA01488; Wed, 14 Oct 1998 09:20:07 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810141620.JAA01488@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Darren Whittaker cc: Mike Smith , freebsd-current@FreeBSD.ORG, john.young@openmarket.com Subject: Re: problem in 3.0 In-reply-to: Your message of "Wed, 14 Oct 1998 10:12:57 MDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 14 Oct 1998 09:20:07 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The fact of the matter is that date only returned output once, why did it > not return output 10 times? No idea. I can't make it fail in that fashion here, on a range of -current systems from mid-September through yesterday's snapshot. Does the following: #include #include void main(void) { int i, j; char buf[256]; FILE *p; for (i = 0; i < 100; i++) { if ((p = popen("/bin/date", "r")) == NULL) err(1, "popen"); fgets(buf, sizeof(buf) - 1, p); printf(buf); if ((pclose(p)) == -1) err(1, "pclose"); } } do the "right" or the "wrong" thing? > -Darren -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message