From owner-freebsd-current Tue Oct 6 14:08:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA20796 for freebsd-current-outgoing; Tue, 6 Oct 1998 14:08:48 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zippy.dyn.ml.org (sf3-77.ppp.wenet.net [206.15.84.77]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA20665 for ; Tue, 6 Oct 1998 14:08:24 -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 OAA01997 for ; Tue, 6 Oct 1998 14:10:28 -0700 (PDT) (envelope-from garbanzo@hooked.net) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Tue, 6 Oct 1998 14:10:27 -0700 (PDT) From: Alex X-Sender: garbanzo@zippy.dyn.ml.org To: current Subject: Something else seems to be leaking... 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 Welp. I finally got aorund to toying with kcminfo (some obscure thing from KDE), and it's leaking like a sieve. Naturally I think that it's to blame, however I've managed to narrow it down to a few lines of code (which have been reported to not leak on -stable): /* Q&D hack for swap display. Borrowed from xsysinfo-1.4 */ if ((pipe = popen("/usr/sbin/pstat -ks", "r")) == NULL) { used = total = 1; return; } fgets(buf, sizeof(buf), pipe); fgets(buf, sizeof(buf), pipe); fgets(buf, sizeof(buf), pipe); fgets(buf, sizeof(buf), pipe); strtok(buf, " "); total_str = strtok(NULL, " "); used_str = strtok(NULL, " "); pclose(pipe); Commenting everything but the popen and pclose things, doesn't seem to fix anything. This is called from some sort of timer every second or so, so the leak is rather apparent. - 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