Date: Wed, 20 Oct 2021 15:47:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259319 Bug ID: 259319 Summary: openpty(3) and forkpty(3) don't work under Linux compat Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jmmv@FreeBSD.org Created attachment 228888 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228888&action=edit Small repro program that uses openpty Linux binaries that call into openpty(3) or forkpty(3) get "No such file or directory" as a result of these calls. This is in combination with linux_base-c7-7.9.2009. I've found this issue while trying to run the VSCode remote server under Linux compat, but I have attached a trivial repro program that shows the issue. I have loaded the pty kernel module. One thing I've found is that these calls are trying to open /dev/ptmx, whereas this device is under /dev/pts/ptmx on Linux. However, by looking at the glibc sources, it seems as if the lack of ptmx is a non-fatal error, as the code then falls back to opening /dev/ptyp0. -- You are receiving this mail because: You are the assignee for the bug.