From 9dd37c6bc4daaf7cf42ed3e9b616f789a5a928b0 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Thu, 16 Apr 2015 18:35:27 -0700 Subject: [PATCH] ... --- cmd/barak/README.md | 4 ++++ process/process.go | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 cmd/barak/README.md diff --git a/cmd/barak/README.md b/cmd/barak/README.md new file mode 100644 index 000000000..e05731130 --- /dev/null +++ b/cmd/barak/README.md @@ -0,0 +1,4 @@ +```bash +# Maybe in a screen session: +cat cmd/barak/seed | ./build/barak +``` diff --git a/process/process.go b/process/process.go index 3c8ddcd04..be4a0ad6d 100644 --- a/process/process.go +++ b/process/process.go @@ -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) } }