Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65727 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25831 invoked from network); 8 Feb 2013 12:03:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2013 12:03:01 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:49480] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/60-18015-479E4115 for ; Fri, 08 Feb 2013 07:03:01 -0500 Received: by mail-la0-f53.google.com with SMTP id fr10so3611570lab.26 for ; Fri, 08 Feb 2013 04:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=2ZxPjmCg7G3P6zHLNmY5yJ9knCgtSHQq0Og8OFWev7w=; b=MKx6ZL2h4JiGoSHyUaRC19N0COEvJzHQ1He9YvEF+mggqoM1zc+r0VVLhD0N4UUSTd zPGWJAsW/ES4RY/zSFLXXZgg//wGxt2yue5XE849hWkHhl4L6KgOU+oNfohqDgpXVyyz w3rWTrCp22N204+f2dSKC61gQ8TqTchBTVpxwDlGphdO62Znet3zQtf8JZD71TLvl+k+ g+x8fSOXeFYGlxPluCqsaAwNcWm1z0U4dJbU84kQx8jbKmTytW2mUhwL5SxU+3FkTDGl 3xKwmSDsydNXpX2ql+T/4cuHR2rkMaWSgRzLTnxaEzrVvpgmdpAcc6erMNg7SalJy/vZ 5Muw== MIME-Version: 1.0 X-Received: by 10.152.133.52 with SMTP id oz20mr4641479lab.30.1360324976923; Fri, 08 Feb 2013 04:02:56 -0800 (PST) Received: by 10.112.138.131 with HTTP; Fri, 8 Feb 2013 04:02:56 -0800 (PST) In-Reply-To: <5114A1B8.3030305@lerdorf.com> References: <2B76A3EF-66AC-4E73-B186-236E9C2AE891@gmail.com> <5113AE8F.4060402@2bepublished.at> <5114A1B8.3030305@lerdorf.com> Date: Fri, 8 Feb 2013 13:02:56 +0100 Message-ID: To: Rasmus Lerdorf Cc: Christoph Rosse , PHP internals Content-Type: multipart/alternative; boundary=f46d0435c24c0755a604d5355776 Subject: Re: [PHP-DEV] [RFC] Improved Linux process title support in the CLI SAPI From: nikita.ppv@gmail.com (Nikita Popov) --f46d0435c24c0755a604d5355776 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Feb 8, 2013 at 7:56 AM, Rasmus Lerdorf wrote: > On 02/07/2013 10:25 AM, Nikita Popov wrote: > > On Thu, Feb 7, 2013 at 2:39 PM, Christoph Rosse >wrote: > > > >> why wouldn't this go into core? setting the name of the current > >> php-process is definitely something everyone that develops php-cli > scripts > >> could use. > >> > > I use a lot of php-cli scripts and I've never seen the need. Without > having > > hard data to back this up, I am pretty sure that this applies to nearly > all > > php-cli scripts. > > I think you may have glossed over the part where Keyur explained that > when running tons of Gearman workers under GearmanManager it makes > things a lot easier if we had a working way to set the proctitle. As he > explained, the pecl/proctitle way of doing it isn't sufficient because > it is likely to corrupt memory if you try to set the process title to > anything longer than 3 characters. The only way to fix that memory > corruption is to hook in earlier and that isn't something we can do from > an extension. > I didn't gloss over it, it just wasn't there at the time :) But yeah, that use case makes a lot of sense to me, so +1 on this. Nikita --f46d0435c24c0755a604d5355776--