Ver Fonte

HackStudio: Set the pgrp of the pseudoterminal to the child pid

This fixes #3046.
AnotherTest há 5 anos atrás
pai
commit
1222be7e3a
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      DevTools/HackStudio/TerminalWrapper.cpp

+ 2 - 0
DevTools/HackStudio/TerminalWrapper.cpp

@@ -104,6 +104,8 @@ void TerminalWrapper::run_command(const String& command)
             exit(1);
             exit(1);
         }
         }
 
 
+        tcsetpgrp(pts_fd, getpid());
+
         // NOTE: It's okay if this fails.
         // NOTE: It's okay if this fails.
         (void)ioctl(0, TIOCNOTTY);
         (void)ioctl(0, TIOCNOTTY);