[Israel.pm] change proccess name of a forked apache process

Itzik Lerner - Orpak itzik at orpak.co.il
Mon Jul 19 06:49:23 PDT 2004



            I need to change the process name ( as it will be displayed by
ps) of a process

            After I fork'd out from mod_perl  under Apache.


            Let say I'm forking:


                        my $pis = fork();


            now I get a new process with it's own pid, but when looking of
the output of ps, the process name is 'httpd',

            I want to change it to something else.


            Dose anybody have an idea?


10x in advance

--Itzik Lerner


More information about the Perl mailing list