Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7235 invoked from network); 7 Feb 2013 08:37:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2013 08:37:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=crosse@2bepublished.at; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=crosse@2bepublished.at; sender-id=unknown Received-SPF: error (pb1.pair.com: domain 2bepublished.at from 78.142.132.104 cause and error) X-PHP-List-Original-Sender: crosse@2bepublished.at X-Host-Fingerprint: 78.142.132.104 server3.zimbrahosting.at Linux 2.6 Received: from [78.142.132.104] ([78.142.132.104:42258] helo=server3.zimbrahosting.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/74-10737-1D763115 for ; Thu, 07 Feb 2013 03:37:38 -0500 Received: from [192.168.62.62] (unknown [217.116.179.162]) by server3.zimbrahosting.at (Postfix) with ESMTPSA id 4AC56DAC112; Thu, 7 Feb 2013 09:37:34 +0100 (CET) Message-ID: <511367CC.2020800@2bepublished.at> Date: Thu, 07 Feb 2013 09:37:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Alexey Zakhlestin CC: Keyur Govande , internals@lists.php.net References: <94A38011-0897-4A35-AA1B-5787255C432D@gmail.com> In-Reply-To: <94A38011-0897-4A35-AA1B-5787255C432D@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Improved Linux process title support in the CLI SAPI From: crosse@2bepublished.at (Christoph Rosse) Am 2013-02-07 08:45, schrieb Alexey Zakhlestin: > > On 07.02.2013, at 9:40, Keyur Govande wrote: > >> Hello, >> >> I've created a new RFC to improve support for setting a CLI process' title >> on Linux. It is based off of the PostgreSQL implementation and is more >> robust than the proctitle extension. >> >> More details and patch here: https://wiki.php.net/rfc/cli_process_title > > This would be useful for some of my tasks! > I don't like names of functions, but I like functionality and API approach > > how about: > > bool cli_title_settable(void); > bool cli_title_set(string); > string cli_title_get(); > > Greate feature and +1 to Alexeys function names. But what is the point in checking if I'm able to set a title with is_cli_ps_title_available() if set_cli_ps_title() can fail and return false anyway? I'm just asking because I don't see the benefit of the function is_cli_ps_title_available for the user.