1

I open() a USB serial port in my C application, but in the meantime the device is disconnected. I close() the device, however, I get this when I do lsof

sdmd 2987 root 5u CHR 188,1 0t0 27482 /dev/ttyUSB1 (deleted)

The problem is when the device is reconnected, the kernel (linux) can't assign the name for that name. There's no /dev/ttyUSB1 in the filesystem however.

How can I let this device go? How can I really close that file?

Lev
  • 111
  • 1
  • 1
  • 10

0 Answers0