Re: tty: closing n_gsm line discipline always times out

2017-05-19 Thread Alan Cox
> This option doesn't sound very nice because then userspace needs to know > details of the protocol that it just wants to use. Also the cleanup > won't be done if the userspace process is killed for some reason. The same is basically true of an ioctl unfortunately. Alan

Re: tty: closing n_gsm line discipline always times out

2017-05-17 Thread Sascha Hauer
On Wed, May 17, 2017 at 04:23:58PM +0100, Alan Cox wrote: > On Wed, 17 May 2017 15:44:56 +0200 > Sascha Hauer wrote: > > > Hi All, > > > > When the n_gsm line discipline is closed it wants to shutdown the line > > discipline properly and asks the link partner to end the mux protocol. This > > i

Re: tty: closing n_gsm line discipline always times out

2017-05-17 Thread Alan Cox
On Wed, 17 May 2017 15:44:56 +0200 Sascha Hauer wrote: > Hi All, > > When the n_gsm line discipline is closed it wants to shutdown the line > discipline properly and asks the link partner to end the mux protocol. This is > done in gsm_cleanup_mux() around line 2050 in n_gsm.c: > > if (dlc