tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: destroy ppp(4) on closing tty



Yasuoka Masahiko <yasuoka%iij.ad.jp@localhost> writes:

> As far as my test, current behavior is
>
>   -----------  -----------  ---------------
>                created by
>                ifconfig     device/tty open
>   -----------  -----------  ---------------
>   tun(4)       remain       remain
>   ppp(4)       destroyed    destroyed
>   -----------  -----------  ---------------
>
> and after the patch,
>
>   -----------  -----------  ---------------
>                created by
>                ifconfig     device/tty open
>   -----------  -----------  ---------------
>   tun(4)       remain       remain
>   ppp(4)       remain       destroyed
>   -----------  -----------  ---------------
>
> Their behaviors sould be consistent?

Patching ppp(4) so that interfaces created by ifconfig create remain
after clossing the tty seems like the right thing to do.

I don't understand why a tun(4) device created when /dev/tunN is written
to should remain after last close.  But that's really a separate issue.


Home | Main Index | Thread Index | Old Index