You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spent some time on this yesterday. The problem is using any of the default file descriptors (0, 1 or 2) for a process to obtain the terminal name (as done at nibrahim@e6f5eaf#diff-bf673c7ccb2de4138124fef0d870a1cdR210) is not reliable. I tried using fd 1 and 2 instead of 0 and instead of /dev/null I received paths inside of /tmp/ when py.test is invoked.
For the OS X port, I was able to use devname() syscall but that is specific to BSD systems. The only correct way to do this (that I could find) was to use the same approach as psutil (maintain a map for controlling terminal number with device names, obtain the number (key) from /proc/pid/stat and then query the map).
The text was updated successfully, but these errors were encountered: