* fhandler_tty.cc (fhandler_tty_slave::open): Don't protect input/output
handles since they are not properly manipulated later. * tty.cc (tty::make_pipes): Ditto.
This commit is contained in:
		@@ -367,14 +367,14 @@ tty::make_pipes (fhandler_pty_master *ptym)
 | 
			
		||||
      return FALSE;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  ProtectHandle1INH (to_slave, to_pty);
 | 
			
		||||
  // ProtectHandle1INH (to_slave, to_pty);
 | 
			
		||||
  if (CreatePipe (&from_slave, &to_master, &sec_all, 0) == FALSE)
 | 
			
		||||
    {
 | 
			
		||||
      termios_printf ("can't create output pipe");
 | 
			
		||||
      set_errno (ENOENT);
 | 
			
		||||
      return FALSE;
 | 
			
		||||
    }
 | 
			
		||||
  ProtectHandle1INH (from_slave, from_pty);
 | 
			
		||||
  // ProtectHandle1INH (from_slave, from_pty);
 | 
			
		||||
  termios_printf ("tty%d from_slave %p, to_slave %p", ntty, from_slave,
 | 
			
		||||
		  to_slave);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user