Browse Source

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

This fixes #3046.
AnotherTest 5 năm trước cách đây
mục cha
commit
1222be7e3a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);
         }
 
+        tcsetpgrp(pts_fd, getpid());
+
         // NOTE: It's okay if this fails.
         (void)ioctl(0, TIOCNOTTY);