A Google search for for the function you mentioned, setproctitle, with the word Linux produced some possible leads in the first few results. They may help you change the process name. This one looked particularly interesting: http://lightconsulting.com/~thalakan/process-title-notes.html
Also the fourth result for "Linux setproctitle" is a Perl module which does that on Linux, so one could look at the C code for that module to see how they are doing it. The output looks quite like the output of mod_status, so one might use mod_status to achieve the same end goal. (No, mod_status doesn't change the output of "ps", but maybe you can use mod_status INSTEAD of ps, or write a simple wrapper around ps which merges it's output with that of mod_status.) -- Ray B. Morris [EMAIL PROTECTED] On 04/28/2008 12:09:09 PM, Aivars Šterns wrote: > hi guys. > i'm being picked on by fbsd guys because they have a module which i > really > like but it doesn't run on linux. The name of this module is > mod_proctitle > and it basically shows in ps which process is working on which > request, see > example below. Now, i've done some asking around and it seems the > module > uses a function that isn't available on linux, its name is > setproctitle. Can > anyone please look into this? > > www 42820 0.6 0.7 28752 21116 ?? R 6:30PM 0:00.30 > httpd: > x.x.x.x [www.example.com] GET /video/pajero_lv.flv HTTP/1.1 (httpd) > www 42819 0.1 0.7 27872 20644 ?? R 6:30PM 0:01.50 > httpd: > x.x.x.x [www.example.com] GET /style/car_chooser_lv.swf HTTP/1.1 > (httpd) > > module adress: http://tups.lv/mod_proctitle.c > > > -- > Ar cieņu Aivars Šterns > tālr: +371 26150528 > mailto:[EMAIL PROTECTED] > http://tups.lv > skype: Atomsis >
