summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Czapliński <czapkofan@gmail.com>2018-10-21 01:00:46 +0200
committerMateusz Czapliński <czapkofan@gmail.com>2018-10-21 01:00:46 +0200
commit38fd19f32434b82efeac3c3e6203edc13ba6eac9 (patch)
treed623499088c6129c14f2a5a357f48cb96f5b8a61
parenta736b82af4919b811a79e7c05a73d9a658af1835 (diff)
attempt at fixing Ctrl-S to emit EOF; failed
-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
}