Re: Creating PID file
- From: peng.kyo@xxxxxxxxx (J. Peng)
- Date: Sun, 27 Apr 2008 10:36:11 +0800
On Sun, Apr 27, 2008 at 9:50 AM, J. Peng <peng.kyo@xxxxxxxxx> 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: peng.kyo@xxxxxxxxx AIM: JeffHua
.
- Follow-Ups:
- sql and perl
- From: Richard Lee
- sql and perl
- References:
- Creating PID file
- From: Michael Barnes
- Re: Creating PID file
- From: J. Peng
- Creating PID file
- Prev by Date: Re: Creating PID file
- Next by Date: sql and perl
- Previous by thread: Re: Creating PID file
- Next by thread: sql and perl
- Index(es):
Relevant Pages
|
|