Linus Torvalds writes: (Summary) In this case, the ptmx node is not necessarily associated
with the pts directory in any way, and the only thing that matters is
that it's the right special character device.
that it's the right special character device.
Honestly, I personally detest case #1, even if some people think it's the "clean" case. It would have been clean had that been how ptmx worked traditionally, but that' ssimply not the case.
not the case.
But if something really odd happens, and we cannot find a pts subdirectory, or there is not a pts node, or not a ptmx node in that subdirectory, I think all bets are pretty much off path-wise.
that it's the right special character device.
Honestly, I personally detest case #1, even if some people think it's the "clean" case. It would have been clean had that been how ptmx worked traditionally, but that' ssimply not the case.
not the case.
But if something really odd happens, and we cannot find a pts subdirectory, or there is not a pts node, or not a ptmx node in that subdirectory, I think all bets are pretty much off path-wise.