Re: [RFC] Improved Linux process title support in the CLI SAPI

From: Date: Fri, 08 Feb 2013 12:02:56 +0000
Subject: Re: [RFC] Improved Linux process title support in the CLI SAPI
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-65727@lists.php.net to get a copy of this message
On Fri, Feb 8, 2013 at 7:56 AM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > On 02/07/2013 10:25 AM, Nikita Popov wrote: > > On Thu, Feb 7, 2013 at 2:39 PM, Christoph Rosse <crosse@2bepublished.at > >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

« previous php.internals (#65727) next »