From nobody  Wed Oct 21 07:57:22 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id HAA27962;
          Wed, 21 Oct 1998 07:57:22 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199810211457.HAA27962@hub.freebsd.org>
Date: Wed, 21 Oct 1998 07:57:22 -0700 (PDT)
From: djw@shopsite.com
To: freebsd-gnats-submit@freebsd.org
Subject: Code using popen compiled on BSDI BSD/OS 2.0 does not work on Beta 3.0
X-Send-Pr-Version: www-1.0

>Number:         8397
>Category:       i386
>Synopsis:       Code using popen compiled on BSDI BSD/OS 2.0 does not work on Beta 3.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 21 08:00:00 PDT 1998
>Closed-Date:    Thu Jul 19 13:27:14 PDT 2001
>Last-Modified:  Thu Jul 19 13:31:33 PDT 2001
>Originator:     Darren Whittaker
>Release:        3.x beta
>Organization:
Open Market, Inc.
>Environment:
did not have telnet access to 3.x machine
>Description:
The first popen/fgets/pclose works once but not twice. A test program
compiled on BSDI BSD/OS 2.0 will fail on freeBSD 3.x, the same program 
compiled on a 2.x freeBSD machine will work on freeBSD 3.x. The test prorgam
is a simple for loop that does a popen of the data command, displays its's
output and then does a pclose. Only the first time through the loop displays
any output. Have also found that the system function does the same thing, works
once but never again.
>How-To-Repeat:
See full dscription
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Thu Jul 19 13:27:14 PDT 2001 
State-Changed-Why:  

Sample source code which the PR refers to is not present.  If 
this is still a problem in newer versions of FreeBSD, such as 
4.3-RELEASE, please open a new PR with the relevant code that 
demonstrates the problem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=8397 
>Unformatted:
