fixed slave close problem, keep one slave descriptor open, use slave for parameters and master for io, now use the name //pty for opening a pty device