From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 3 17:58:29 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17068106568D for ; Wed, 3 Feb 2010 17:58:29 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 9728F8FC15 for ; Wed, 3 Feb 2010 17:58:28 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so50655fgb.13 for ; Wed, 03 Feb 2010 09:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=Sk1m3MHQHCqhIJ9WsVnwBLhW7njX0+L1vrpQ01lfwdM=; b=NjDLvQ4R4MAhLYSN6NSPhof8ffqYqAw41P1ORWr9ZkV+zS2qdTq80Ddd9omJaSwnis NnAN8ZIoXliifBfqU4onQoIuR6t89Wswdw/YhvcpcB/+B9TkTGbVFOItoUJ+NIMdPY8K dIDzeFaUuL2GOl3PNbm+6JsllGaOh55+iQ2Ic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=hjQwnsP1j0FKLqtvyOad2wibJ1+XVqaS7rR7w6NS0n+jClTJwZZayGZfDu4EDMaz93 lw/2UuZq6lbxjOp12gQK+U0RnCa8NwIESwwloEYYq6sm4mPyqnbhYbh4Ta/k/huktAH4 AEGnTun9Vnuvf8UqFR3KS4O0xSl3OvCHWgUP8= Received: by 10.87.65.9 with SMTP id s9mr309359fgk.48.1265219907025; Wed, 03 Feb 2010 09:58:27 -0800 (PST) Received: from centel.dataix.local (ppp-21.197.dialinfree.com [209.172.21.197]) by mx.google.com with ESMTPS id 15sm3320479fxm.6.2010.02.03.09.58.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Feb 2010 09:58:25 -0800 (PST) Sender: "J. Hellenthal" Date: Wed, 3 Feb 2010 12:58:11 -0500 From: jhell To: Eitan Adler In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org Subject: Re: [RFC] [patch] pkill verbose option X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 17:58:29 -0000 On Wed, 3 Feb 2010 12:52, jhell@ wrote: > > On Wed, 3 Feb 2010 10:00, eitanadlerlist@ wrote: >> I added an option to pkill which lists what processes it kills and what >> signal is sent. If no signals are sent it prints out the same message >> killall does. >> > > Unfortunately that patch works but has unintended operation that can be seen > with the following. > > sleep 1000 & > pkill sleep > No matching processes belonging to you were found > [1]+ Terminated: 15 sleep 10000 > > It then kills sleep and still prints no processes belong to you message. > > Now pkill -v sleep on my system actually causes my Xserver to exit with a > unexpected signal 15. > > Without the patches it works as it should... > > Overhead endured. > > Ugh! ignore the pkill -v comment. Should have noticed the -V instead. -- jhell