Closing unused descriptors

Jean-Christian de Rivaz jc at eclis.ch
Thu Sep 24 11:09:46 PDT 2015


Le 24. 09. 15 18:24, Aleksander Morgado a écrit :
> 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 tested device is now off line far away from me, so I am currently 
not certain, but I believe that this could be this message:

ModemManager[1088]: <info>  (tty/ttyACM3): released by modem 
/sys/devices/platform/ahb/600000.ohci/usb2/2-1

> 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.
>

Agree, but I don't find other message.

Jean-Christian



More information about the ModemManager-devel mailing list