How can I determine what process is currently using a serial port? A good bit of google searching hasn't turned up anything useful, but it seems like there has to be a way to do this without too much difficulty.
When I first started looking into this problem, I assumed that when a port was in use, a lock file would be generated for it. Is that not correct? If it is, where are these locks stored?
Any help is greatly appreciated.