News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mark Karpeles' Blog:
proctitle a new step for pinetd
January 22, 2009 @ 11:12:17

If you've ever worked with forking processes in PHP, you know things can get a little difficult when you have more than one process going at a time. Identification can become a hassle, especially if you need to kill one off because of performance issues. If you've found yourself in this spot before, you might want to check out this update Mark Karpeles has made to his pinetd project to allow for naming of those forked processes.

Ever wanted to give meaningful names to your processes when you pcntl_fork() with PHP ? proctitle is the extension you're looking for! Adapted from bug report #29479 and code initially wrote by Midom for Wikipedia, the proctitle extension allows for a process to change its own displayed title in the system's process list.

The extension (seen in action here) is an interface for making different sorts of daemons, including the ability to give them names. You can check out the project here.

0 comments voice your opinion now!
pinetd proctitle extension daemon tcp udp name process fork


blog comments powered by Disqus

Similar Posts

Chris Jones: Converting REF CURSOR to PIPE for Performance in PHP OCI8 and PDO_OCI

Zend Developer Zone: The Speed of Going Local

Dave Dash's Blog: Firebug Lite and symfony

Till's Blog: phpChecklist

Fabien Potencier: Packing a Symfony full-stack Framework Application in one File - Bootstrapping


Community Events











Don't see your event here?
Let us know!


application hack package performance language database component podcast composer install security introduction symfony2 series release facebook hhvm unittest framework opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework