From owner-freebsd-current Wed Oct 7 23:04:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA27675 for freebsd-current-outgoing; Wed, 7 Oct 1998 23:04:45 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zippy.dyn.ml.org (sf3-51.ppp.wenet.net [206.15.84.51]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA27653 for ; Wed, 7 Oct 1998 23:04:40 -0700 (PDT) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.9.1/8.8.8) with SMTP id XAA01916; Wed, 7 Oct 1998 23:06:00 -0700 (PDT) (envelope-from garbanzo@hooked.net) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Wed, 7 Oct 1998 23:05:59 -0700 (PDT) From: Alex X-Sender: garbanzo@zippy.dyn.ml.org To: Mike Smith cc: Darren Whittaker , freebsd-current@FreeBSD.ORG Subject: Re: problem in 3.0 In-Reply-To: <199810080530.WAA01135@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 7 Oct 1998, Mike Smith wrote: [...] > I'm afraid you're going to have to supply some more detail before we > can help you further here. #include int main() { for (;;) { pclose(popen("/usr/sbin/pstat -sk", "r")); } } Compile and run this. Watch top on another pty as this is running. Unless my understanding of popen is flawed, this shouldn't continue to grab more and more memory. - alex | "Contrary to popular belief, penguins are not the salvation of modern | | technology. Neither do they throw parties for the urban proletariat." | | Powered by FreeBSD http://www.freebsd.org/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message