Closing unused descriptors

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


On Thu, Sep 24, 2015 at 6:24 PM, Aleksander Morgado
<aleksander at aleksander.es> wrote:
> 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.

Please update to at least ModemManager 1.4.2.

This fix was included after 1.4.0:
http://cgit.freedesktop.org/ModemManager/ModemManager/commit/?h=mm-1-4&id=009af02f6d06d5020e397455354b9ccc56557b02


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list