in reply to CGI problems - please help
One way I would propose is to get rid of the exec call and instead pull the whole code from the server.cgi into the block where the exec is being called.
By the way there are race conditions in this code. Two (or more) instances of the program can read simultaneusly the "0" value from the pid file and think that they are the first. You should lock the file (see perldoc -f flock).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI problems - please help
by alikim (Initiate) on Sep 11, 2003 at 13:20 UTC | |
by zby (Vicar) on Sep 11, 2003 at 13:38 UTC |