From owner-cvs-src@FreeBSD.ORG Sun Mar 27 12:53:26 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3090716A4CE; Sun, 27 Mar 2005 12:53:26 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 036F343D1D; Sun, 27 Mar 2005 12:53:26 +0000 (GMT) (envelope-from alfred@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j2RCrPr1048248; Sun, 27 Mar 2005 12:53:25 GMT (envelope-from alfred@repoman.freebsd.org) Received: (from alfred@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2RCrPhu048247; Sun, 27 Mar 2005 12:53:25 GMT (envelope-from alfred) Message-Id: <200503271253.j2RCrPhu048247@repoman.freebsd.org> From: Alfred Perlstein Date: Sun, 27 Mar 2005 12:53:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/truss extern.h main.c setup.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2005 12:53:26 -0000 alfred 2005-03-27 12:53:25 UTC FreeBSD src repository Modified files: usr.bin/truss extern.h main.c setup.c Log: When doing the initial open of the proc via procfs, complain if we are unable to open the /proc/pid/mem file. Otherwise doing a truss on a nonexistant pid makes us return success even though no such process exists. Revision Changes Path 1.10 +1 -1 src/usr.bin/truss/extern.h 1.40 +10 -4 src/usr.bin/truss/main.c 1.21 +3 -3 src/usr.bin/truss/setup.c