Browse Source

...

pull/55/head
Jae Kwon 9 years ago
parent
commit
9dd37c6bc4
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      cmd/barak/README.md
  2. +2
    -0
      process/process.go

+ 4
- 0
cmd/barak/README.md View File

@ -0,0 +1,4 @@
```bash
# Maybe in a screen session:
cat cmd/barak/seed | ./build/barak
```

+ 2
- 0
process/process.go View File

@ -85,8 +85,10 @@ func Create(mode int, label string, execPath string, args []string, input string
func Stop(proc *Process, kill bool) error {
if kill {
fmt.Printf("Killing process %v\n", proc.Cmd.Process)
return proc.Cmd.Process.Kill()
} else {
fmt.Printf("Stopping process %v\n", proc.Cmd.Process)
return proc.Cmd.Process.Signal(os.Interrupt)
}
}

Loading…
Cancel
Save