[PATCH 6/7] Do not restore termios on port close
Aleksander Morgado
aleksander at aleksander.es
Thu Feb 11 09:03:48 UTC 2016
On 02/02/16 15:30, tomas.jura1 at gmail.com wrote:
> From: Tomas Jura <tomas_jura1 at gmail.com>
>
> ---
> src/mm-port-serial.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/mm-port-serial.c b/src/mm-port-serial.c
> index fc5d59e..5b04bcd 100644
> --- a/src/mm-port-serial.c
> +++ b/src/mm-port-serial.c
> @@ -1349,7 +1349,6 @@ _close_internal (MMPortSerial *self, gboolean force)
> }
> }
>
> - tcsetattr (self->priv->fd, TCSANOW, &self->priv->old_t);
> tcflush (self->priv->fd, TCIOFLUSH);
> }
>
>
Could you also remove the old_t variable completely from the private
struct, now that it won't be needed any more?
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list