forkpty: set the output fd to -1 on the slave side.
glibc, FreeBSD, OpenBSD, and Darwin all just leave the fd unchanged and possibly uninitialized. Setting it to -1 seems friendlier, though. Bug: http://b/27506278 Change-Id: I7acdc8eecbea4404d5fb4ba0b4d572245a323886
Loading
Please sign in to comment