ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: community@altlinux.ru
Subject: [Comm] Re: ?: почему эта программа жрет swap w/ speed 1Mb/sec
Date: Thu, 21 Aug 2003 15:04:40 +0400
Message-ID: <20030821110440.GH1881@julia.office.altlinux.ru> (raw)
In-Reply-To: <20030821105347.GG1881@julia.office.altlinux.ru>


[-- Attachment #1.1: Type: text/plain, Size: 192 bytes --]

On Thu, Aug 21, 2003 at 02:53:47PM +0400, Alexey Tourbin wrote:
> Кажись в этом месте libnet протекает.

Точняк.  Попробуйте пересобрать libnet1 с вот этим патчем и посмотреть,
течёт или нет.

[-- Attachment #1.2: libnet-1.0.2a-alt-memory-leak.patch --]
[-- Type: text/plain, Size: 420 bytes --]

--- Libnet-1.0.2a/src/libnet_link_sockpacket.c~	2001-01-07 18:53:44 +0000
+++ Libnet-1.0.2a/src/libnet_link_sockpacket.c	2003-08-21 11:01:17 +0000
@@ -167,14 +167,9 @@ bad:
 int
 libnet_close_link_interface(struct libnet_link_int *l)
 {
-    if (close(l->fd) == 0)
-    {
-        return (1);
-    }
-    else
-    {
-        return (-1);
-    }
+    int rv = close(l->fd);
+    free(l);
+    return rv ? -1 : 1;
 }
 
 

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-08-21 11:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-21  6:30 [Comm] " Oleg K. Artemjev
2003-08-21  6:37 ` [Comm] " Michael Shigorin
2003-08-21  8:13   ` Oleg K. Artemjev
2003-08-21 10:16     ` Michael Shigorin
2003-08-21 10:39       ` Oleg K. Artemjev
2003-08-21 11:01         ` Michael Shigorin
2003-08-21  7:12 ` [Comm] " Sasha Martsinuk
2003-08-21  8:10   ` Oleg K. Artemjev
2003-08-21  8:28     ` Alexey I. Froloff
2003-08-21 10:53 ` [Comm] " Alexey Tourbin
2003-08-21 11:04   ` Alexey Tourbin [this message]
2003-08-21 11:24     ` Alexey I. Froloff
2003-08-21 11:30       ` Alexey Tourbin
2003-08-21 12:55         ` Alexey Tourbin
2003-08-21 12:12   ` Oleg K. Artemjev
2003-08-21 12:46     ` Sergey Vlasov
2003-08-21 12:54     ` Alexey Tourbin
2003-08-21 13:17       ` Oleg K. Artemjev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030821110440.GH1881@julia.office.altlinux.ru \
    --to=at@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git