in reply to Can you delete a file by descriptor?
Not on *nix, and not, as far as I know, on Win32.
I'm afraid that a process might get wedged and lock out all programs using it.
Instead of wrapping a process around flock(), consider using a socket-based lock server, with "locks" recorded strictly in memory. Such a thing can be very simple, and very stable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Can you delete a file by descriptor?
by shotgunefx (Parson) on Mar 14, 2002 at 08:15 UTC | |
|
Re: Re: Can you delete a file by descriptor?
by theorbtwo (Prior) on Mar 14, 2002 at 19:37 UTC | |
by blakem (Monsignor) on Mar 14, 2002 at 20:05 UTC | |
by theorbtwo (Prior) on Mar 15, 2002 at 15:44 UTC |