From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17269 invoked by alias); 15 Jun 2007 12:07:52 -0000 Received: (qmail 17261 invoked by uid 22791); 15 Jun 2007 12:07:51 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Jun 2007 12:07:49 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1HzAab-0000Zj-00; Fri, 15 Jun 2007 14:07:41 +0200 Date: Fri, 15 Jun 2007 18:41:00 -0000 To: Tad Cc: ecos-discuss@sources.redhat.com Message-ID: <20070615120741.GC27270@lunn.ch> Mail-Followup-To: Tad , ecos-discuss@sources.redhat.com References: <46726D19.50602@ds3switch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46726D19.50602@ds3switch.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] SNMP re-inits when session closed or trapsink removed -- FIX X-SW-Source: 2007-06/txt/msg00170.txt.bz2 > Here's the quick fix. Most people probably don't close trapsinks too > often and perhaps didn't even notice snmp re-init when they did. > > snmpd.c : receive() > ... > count = select(numfds, &fdset, 0, 0, tvp); > > if (count > 0){ > snmp_read(&fdset); > } else switch(count){ > case 0: > snmp_timeout(); > break; > case -1: > - if (errno == EINTR){ > + if (errno == EINTR || errno == EBADF){ > continue; > } else { > snmp_log_perror("select"); > } > Hi Tod Please send a real patch. Take a look at the other patches sent to the ecos-discuss list. Edit the ChangeLog file to show what you changed and why. Then do cvs diff -u packacges/net/snmp and send the patch it generates. We don't accept fixes in any other format. Thanks Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss