Timo Juhani Lindfors | 16 Feb 2010 23:22
Picon
Picon
Favicon
Gravatar

Re: disconnect of usb2serial causes frameworkd to break connection to gsm-modem

Peter Kornatowski <pkorn <at> gmx.net> writes:
> without any kind of reopening/reconnecting/restarting of minicom.

Minicom probably automatically tries to reopen the serial device:

/* check if device is ok, if not, try to open it */
    if (!get_device_status(portfd_connected)) {
      if (open_term(0, 0) < 0) {
        if (!error_on_open_window)
          error_on_open_window = mc_tell(_("Cannot open %s!"), dial_tty);
      } else {
        if (error_on_open_window) {
          mc_wclose(error_on_open_window, 1);
          error_on_open_window = NULL;
        }
      }
    }

Can you verify this by running

strace -p $(pidof minicom)

from another terminal during unplug/replug?

Gmane