Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
TTY support and allow all directory events. (#30)
Browse files Browse the repository at this point in the history
* temporary key change

* reverted key

* revert to allow directory events, support for TTY session

* remove space
  • Loading branch information
kewegner authored Sep 17, 2019
1 parent d470aa4 commit ce092dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func runPrep(commandString string) (*exec.Cmd, error) {
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
ControllerInfo.log("Running APPSODY_PREP command: " + commandString)
err = cmd.Run()

Expand All @@ -364,7 +364,7 @@ func startProcess(commandString string, theProcessType ProcessType) (*exec.Cmd,
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
ControllerInfo.log("Running command: " + commandString)
err = cmd.Start()

Expand Down Expand Up @@ -440,7 +440,7 @@ func runWatcher(fileChangeCommand string, dirs []string, killServer bool) error
select {
case event := <-w.Event:
ControllerDebug.log("File watch event detected for: " + event.Path)
if unwatchDir(event.Path) || event.IsDir() {
if unwatchDir(event.Path) {
ControllerDebug.log("The path ", event.Path, " is not to be watched. Or this is a directory event which will not be watched.")
} else {
ControllerDebug.log("Determining if file or directory matches REGEX for: " + event.Name())
Expand Down

0 comments on commit ce092dc

Please sign in to comment.