On Jan 6, 11:58am, p...@vps1.whooppee.com (Paul Goyette) wrote: -- Subject: Re: CVS commit: src/share/man/man4
| Hmmm. I'm looking at the filemon_open() code. It seems to have a "fd" | variable that gets set by fd_allocfile(). The value is later passed to | fd_clone() (NOT fd_clone() - two different routines, apparently!). | | The value inside filemon_open() is 4, but when the application program | prints its returned value from open() it has fd #3. | | Unless I can reliably determine which fd the program is using for its | access to /dev/filemon I don't have anything to which I can compare the | requested activity_log fd. You could scan the whole fd array and look for DT_MISC with fops == filemon ops and if you find one that would cause a deadlock, deny. Again this is a hack... But at least it should prevent the deadlock. christos