From owner-freebsd-bugs@FreeBSD.ORG Sat Jun 16 19:30:21 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B51E316A47E for ; Sat, 16 Jun 2007 19:30:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6F99013C4BF for ; Sat, 16 Jun 2007 19:30:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5GJUKaa005138 for ; Sat, 16 Jun 2007 19:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5GJUKkv005137; Sat, 16 Jun 2007 19:30:20 GMT (envelope-from gnats) Resent-Date: Sat, 16 Jun 2007 19:30:20 GMT Resent-Message-Id: <200706161930.l5GJUKkv005137@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitrij Tejblum Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4940316A473 for ; Sat, 16 Jun 2007 19:29:04 +0000 (UTC) (envelope-from tejblum@cmail.yandex.ru) Received: from cmail.yandex.ru (cmail.yandex.ru [213.180.193.1]) by mx1.freebsd.org (Postfix) with ESMTP id B6F8C13C457 for ; Sat, 16 Jun 2007 19:29:03 +0000 (UTC) (envelope-from tejblum@cmail.yandex.ru) Received: from cmail.yandex.ru (localhost [127.0.0.1]) by cmail.yandex.ru (8.14.1/8.14.1) with ESMTP id l5GIxFla004417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 16 Jun 2007 22:59:16 +0400 (MSD) (envelope-from tejblum@cmail.yandex.ru) Received: (from tejblum@localhost) by cmail.yandex.ru (8.14.1/8.14.1/Submit) id l5GIxFBx004414; Sat, 16 Jun 2007 22:59:15 +0400 (MSD) (envelope-from tejblum) Message-Id: <200706161859.l5GIxFBx004414@cmail.yandex.ru> Date: Sat, 16 Jun 2007 22:59:15 +0400 (MSD) From: Dmitrij Tejblum To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/113777: Noisy error message from sockstat X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitrij Tejblum List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 19:30:21 -0000 >Number: 113777 >Category: bin >Synopsis: Noisy error message from sockstat >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 16 19:30:20 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Dmitrij Tejblum >Release: FreeBSD 6.2-STABLE i386 >Organization: OOO Yandex >Environment: >Description: Sometimes a process exits before its name were learned by sockstat. Then sockstat print an error message. Since there is nothing goes wrong here, no error message should be printed in this case. >How-To-Repeat: >Fix: --- sockstat.c. Fri Jun 10 10:36:03 2005 +++ sockstat.c Sat Jun 16 20:48:28 2007 @@ -456,7 +456,8 @@ getprocname(pid_t pid) mib[3] = (int)pid; len = sizeof proc; if (sysctl(mib, 4, &proc, &len, NULL, 0) == -1) { - warn("sysctl()"); + if (errno != ESRCH) + warn("sysctl()"); return ("??"); } return (proc.ki_ocomm); >Release-Note: >Audit-Trail: >Unformatted: