From owner-freebsd-current@FreeBSD.ORG Tue Mar 30 00:47:14 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E65816A4CF; Tue, 30 Mar 2004 00:47:14 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B38643D1D; Tue, 30 Mar 2004 00:47:13 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.11/8.12.11) with ESMTP id i2U8lBoO044984; Tue, 30 Mar 2004 12:47:11 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.11/8.12.11/Submit) id i2U8lBnp044983; Tue, 30 Mar 2004 12:47:11 +0400 (MSD) (envelope-from ache) Date: Tue, 30 Mar 2004 12:47:11 +0400 From: Andrey Chernov To: gad@freebsd.org, current@freebsd.org Message-ID: <20040330084711.GA44887@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , gad@freebsd.org, current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.24.0.7; VDF 6.24.0.75 (host: pobrecita.freebsd.ru) Subject: pgrep strangeness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 08:47:14 -0000 See the picture below. Why it print PID found 3 times? Is it because too many 'sentinel's in the command line? It looks like some analog of 'sort -u' should be performed (qsort(3)?) # pgrep sentinel 547 547 547 # ps ax | grep sentinel 547 ?? Ss 7:48,83 /usr/local/sbin/sentinel -v1 -c /usr/local/etc/sentinel -- Andrey Chernov | http://ache.pp.ru/