summaryrefslogtreecommitdiffstats
path: root/src/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.go')
-rw-r--r--src/reader.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reader.go b/src/reader.go
index 6092087e..99a609e2 100644
--- a/src/reader.go
+++ b/src/reader.go
@@ -86,11 +86,12 @@ func (r *Reader) terminate() {
r.mutex.Unlock()
}
-func (r *Reader) restart(command string, environ []string) {
+func (r *Reader) restart(command commandSpec, environ []string) {
r.event = int32(EvtReady)
r.startEventPoller()
- success := r.readFromCommand(command, environ)
+ success := r.readFromCommand(command.command, environ)
r.fin(success)
+ removeFiles(command.tempFiles)
}
func (r *Reader) readChannel(inputChan chan string) bool {