[PATCH 6/7] Do not restore termios on port close

Tomas Jura tomas.jura1 at gmail.com
Thu Feb 11 21:57:54 UTC 2016


On 11.2.2016 10:03, Aleksander Morgado wrote:
> 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?
>
I'll do it.

I'm sorry for the incorrect email (tomas_jura1@) which is in all my git 
repositories. For a very long time it remained hidden, until the moment 
when I used git send-mail. Please delete the address from the emails 
when responding. Thanks.

Tomas


More information about the ModemManager-devel mailing list