Closing unused descriptors

Aleksander Morgado aleksander at aleksander.es
Thu Sep 24 09:24:08 PDT 2015


On Thu, Sep 24, 2015 at 6:09 PM, Jean-Christian de Rivaz <jc at eclis.ch> wrote:
>
> Actually the /dev/ttyACM* device node has been deleted by the kernel. Only
> the MM file descriptor on it still exists, but correspond to nothing
> anymore. And it's certain that the kernel notified the application with an
> input event that will make the next read() return 0 to indicate the EOF of
> that descriptor.

What does the ModemManager debug log say in that exact moment?

The port should get unmanaged and socket closed when either we get a
zero read or udev event received; the debug log should give some
insight.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list