Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 1998 23:05:59 -0700 (PDT)
From:      Alex <garbanzo@hooked.net>
To:        Mike Smith <mike@smith.net.au>
Cc:        Darren Whittaker <djw@sage1.sagecorp.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: problem in 3.0 
Message-ID:  <Pine.BSF.4.00.9810072304510.758-100000@zippy.dyn.ml.org>
In-Reply-To: <199810080530.WAA01135@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9810072304510.758-100000>