summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--up.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/up.go b/up.go
index 5abfd2e..0c264d6 100644
--- a/up.go
+++ b/up.go
@@ -584,7 +584,13 @@ func StartSubprocess(command string, stdin *Buf, notify func()) *Subprocess {
return p
}
log.Println(cmd.Path)
- go cmd.Wait()
+ go func() {
+ err = cmd.Wait()
+ if err != nil {
+ fmt.Fprintf(w, "up: %s", err)
+ }
+ w.Close()
+ }()
return p
}