aboutsummaryrefslogtreecommitdiffstats
path: root/golib/eows/eows-in.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-02-23 17:40:32 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-02-23 17:40:32 +0100
commitabbf89a5589f2c92f786bb45c5cd613a318a9e24 (patch)
treed5b6f28e0b96570ee1486061057ac89de8f1f0d4 /golib/eows/eows-in.go
parent60e342228ba8017e1cacc71a64280143832e7719 (diff)
Add PtsMode support to eows libv0.2.0
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'golib/eows/eows-in.go')
-rw-r--r--golib/eows/eows-in.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/golib/eows/eows-in.go b/golib/eows/eows-in.go
index 1ecd2a1..89ca891 100644
--- a/golib/eows/eows-in.go
+++ b/golib/eows/eows-in.go
@@ -7,6 +7,7 @@ import (
"time"
)
+// DoneChan Channel used to propagate status+error on command exit
type DoneChan struct {
status int
err error
@@ -43,6 +44,8 @@ func (e *ExecOverWS) cmdPumpStdin(inw *os.File) {
s := sts.Sys().(syscall.WaitStatus)
status = s.ExitStatus()
}
+ e.procExited = true
+
done <- DoneChan{status, err}
}()