On Wed, 31 Jul 1996, Chris Thompson wrote:
> If you are using lockf(3)-type locking, then there is F_TEST [or F_GETLK if
> you are working at the fcntl(2) level]. You could even pick out the pid of
> the Exim process that has the file locked. Not that I am recommending this
> approach...
You still have to open the file, though, so still expensive for scanning
all the files in a queue. However, that has given me the idea of writing
a little utility that can answer the question "which process, if any, is
working on message X?".
--
Philip Hazel University Computing Service,
ph10@??? New Museums Site, Cambridge CB2 3QG,
P.Hazel@??? England. Phone: +44 1223 334714