On Sun, Apr 27, 2008 at 9:50 AM, J. Peng <[EMAIL PROTECTED]> wrote:

>
>  END {
>     unlink "/path/program.pid" if $$ = $pid;

sorry, it's "==" not "=".

     unlink "/path/program.pid" if $$ == $pid;

This avoid the child (if have) try to delete the pid file when it exits.

>  }




-- 
J. Peng - QQMail Operation Team
eMail: [EMAIL PROTECTED] AIM: JeffHua

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to