阅读背景:

从Linux上的根程序获得对tty设备的独占访问权限

来源:互联网 

I have a program running as root on Linux, talking to a tty (actually an LCD implemented as a tty). The device for what it's worth is /dev/ttyUSB0. I'd like to have my program that writes to this device be able to have exclusive access to the device, so as to not have any interference from other instances of the program running at the same time.I have a program running as root on Linux, talk




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: