From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 3 17:52:37 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 F3669106566B for ; Wed, 3 Feb 2010 17:52:37 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com [209.85.220.225]) by mx1.freebsd.org (Postfix) with ESMTP id 7E3268FC1A for ; Wed, 3 Feb 2010 17:52:37 +0000 (UTC) Received: by fxm25 with SMTP id 25so227119fxm.14 for ; Wed, 03 Feb 2010 09:52:36 -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=yXReyhi8c/ndkci/CJ0Tcb3mdYQJaMH9nQhlxyiRATw=; b=RuM2o0SdlqBGfkgiiPZT8oQ0IVyRHQJOQcxI0J+mIX8QJq6rfYImpn8chy+ZytMh13 G3NJVpMtyGUncLv5ROPFpttMK7+SUVIzw4iO86PLspTzMZOElIoshUE3r1fLb4JIqk2c n77JiTZOYzzoAtfY2pxh5OHUoNVP/NoOzsVqA= 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=brNGcXe2aLm/8jR9YJiKt96FXR7GnjUTlryErakSPn+WTUqE9vV2CaUZQbVlVfrt63 dnHgCbA0qHFgLQ3SCU1eK3dp0cWr0LAiRxe95cjCjUFQpr/4rOOGOGdxF4fHPr0oyA59 z3VezGNPZGwQ++53YyAWWEmtndc2EL08wKnvQ= Received: by 10.87.38.5 with SMTP id q5mr309738fgj.45.1265219556191; Wed, 03 Feb 2010 09:52:36 -0800 (PST) Received: from centel.dataix.local (ppp-21.197.dialinfree.com [209.172.21.197]) by mx.google.com with ESMTPS id 14sm3325373fxm.11.2010.02.03.09.52.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Feb 2010 09:52:34 -0800 (PST) Sender: "J. Hellenthal" Date: Wed, 3 Feb 2010 12:52:17 -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; format=flowed; charset=US-ASCII 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:52:38 -0000 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. -- jhell