_open hangs

Hi all,

I have a service in which I open files using _open. This causes hangs if I
try to open a file that is in use for e.g. a running process. But if I do
it in a normal process then it fails appropriately. Now my question is how
can I prevent the _open to hang and cause it to fail in the above
scenario?

Regards.