In order for a tty to work, we need to change
cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
to.
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
I addition, we can not post process all directory events out for ON_CHANGE, so we will remove that temporary change from the previous PR.
In order for a tty to work, we need to change cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true} to. cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
I addition, we can not post process all directory events out for ON_CHANGE, so we will remove that temporary change from the previous PR.