john85
01-21-2003, 02:31 AM
When an online perl application is running, if a user presses "stop" on their browser in the middle of the script execution, does it end the execution exactly where it is?
For example:
If I call flock(DATA,2) at the beginning of a script and someone presses "stop" in the middle of its execution (before flock(DATA,8) is called), does that file remain locked from then on?
This works with a database as well. If a program is writing lots of data to a large database and "stop" is pressed, will unappended data be lost forever? Please help. Thanks.
For example:
If I call flock(DATA,2) at the beginning of a script and someone presses "stop" in the middle of its execution (before flock(DATA,8) is called), does that file remain locked from then on?
This works with a database as well. If a program is writing lots of data to a large database and "stop" is pressed, will unappended data be lost forever? Please help. Thanks.