pty_open_manager
static int pty_open_manager(const char *prog, int *cntrl, char *subsid_name);
if(pty_open_manager(prog, &cntrl, subsid_name))