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.
In reply to Re: Can you delete a file by descriptor?
by dws
in thread Can you delete a file by descriptor?
by shotgunefx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |