Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751215AbVK2FxQ (ORCPT ); Tue, 29 Nov 2005 00:53:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751221AbVK2FxQ (ORCPT ); Tue, 29 Nov 2005 00:53:16 -0500 Received: from willy.net1.nerim.net ([62.212.114.60]:9230 "EHLO willy.net1.nerim.net") by vger.kernel.org with ESMTP id S1751215AbVK2FxP (ORCPT ); Tue, 29 Nov 2005 00:53:15 -0500 Date: Tue, 29 Nov 2005 06:53:10 +0100 From: Willy Tarreau Cc: Alexey Dobriyan , Chris Boot , linux-kernel@vger.kernel.org Subject: Re: [RFC] un petite hack: /proc/*/ctl Message-ID: <20051129055310.GS11266@alpha.home.local> References: <20051129002801.GA9785@mipter.zuzino.mipt.ru> <20051129013354.GA17749@mipter.zuzino.mipt.ru> <20051129054819.GR11266@alpha.home.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051129054819.GR11266@alpha.home.local> User-Agent: Mutt/1.5.10i To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1275 Lines: 38 On Tue, Nov 29, 2005 at 06:48:19AM +0100, Willy Tarreau wrote: > On Tue, Nov 29, 2005 at 04:33:54AM +0300, Alexey Dobriyan wrote: > > On Tue, Nov 29, 2005 at 12:23:19AM +0000, Chris Boot wrote: > > > On 29 Nov 2005, at 0:28, Alexey Dobriyan wrote: > > > >echo kill >/proc/$PID/ctl > > > > send SIGKILL to process > > > > > > > >echo term >/proc/$PID/ctl > > > > send SIGTERM to process > > > > > > Pardon me for my ignorance, but what's wrong with the following? > > > > > > kill -KILL $PID > > > and > > > kill -TERM $PID > > > > kill(1) existence. > > This is non sense, kill is included in the shell ! And if you need to > agressively reduce a binary size, a simple call to kill() will be > shorter than sprintf(), open(), write(), close(). > > > Not that I'm seriously proposing patch for inclusion. > > so please don't pollute the list with useless patches that take time > to review. Sorry, I've just noticed that you marked the subject "[RFC]" and not "[PATCH]". Anyway I still find it useless :-) Regards, Willy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/