ttyS1

Associate
Joined
1 Aug 2003
Posts
1,053
I have connected to a serial device over cu but it has become unresponsive

How do I stop the use of ttyS1 without rebooting the computer?

Many thanks
 
In what way do you mean "stop the use"? You mean unplug?

IIRC serials are hardlinked - i.e. ttys1 will always be serial port1 and so on. Serials are also 'hardlinked' in the sense that they can only be cold plugged.
 
Indeed but if the system see a piece of software as accessing the port it will 'lock' it.

The software in question crashed and I need to remove the locking without restarting
 
Actually my post actually jogged me into realising how to do it myself.

I don't know if there's a slicker way of doing it but I was able to remove the lock by simply deleting the lock file from /var/lock

Makes me seemlike a bit of a fool not to realise before really...
 
Does anyone know how I'd be able to set the port so that root has access?

For some reason it is standardly set so that root can not access it. I have done it previously but my brain seems to be failing
 
Back
Top Bottom