On 04.04.2014 18:40, Ilya Zykov wrote: >> >> Should we put a pointer in the pty node that points to the primary mount >> point >> then so we get the correct one? > > Why? In general case we forever must return first which mount first, next > mount point, > shouldn't replace previous, else incorrect TIOCPTMGET(path) for already > opened pty we will have. > Simple appends it to the tail will be good(IMHO).
Sorry, TIOCPTSNAME of course.