in reply to Finding out by one process a filename opened by another process.
I'm not quite sure I've understood your questions, but maybe flock can help you?