in reply to Re: Re: unlink & rename in Win32
in thread unlink & rename in Win32
before closing these filehandles.flock(tempfile, 4); flock(logfile, 4);
P.S. You should avoid using numbers for constants as it is hard to read and is not fail proof. Use symbol names. use Fcntl ':flock' defines for you LOCK_SH, LOCK_EX, LOCK_UN and LOCK_NB constants.
--
Ilya Martynov
(http://martynov.org/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: unlink & rename in Win32
by rob_au (Abbot) on Dec 02, 2001 at 16:53 UTC |