pinokiod 2.14.8 → 2.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/shells.js +11 -3
- package/package.json +1 -1
package/kernel/shells.js
CHANGED
|
@@ -87,6 +87,7 @@ class Shells {
|
|
|
87
87
|
}
|
|
88
88
|
ondata(stream)
|
|
89
89
|
})
|
|
90
|
+
console.log("shell ended", { id: sh.id, response, stdout: response, event: m })
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
// need to make a request
|
|
@@ -197,10 +198,17 @@ class Shells {
|
|
|
197
198
|
return this.kill(request, message)
|
|
198
199
|
}
|
|
199
200
|
reset() {
|
|
200
|
-
|
|
201
|
+
let info = this.shells.map((s) => {
|
|
202
|
+
return { id: s.id, group: s.group, cmd: s.cmd }
|
|
203
|
+
})
|
|
204
|
+
console.log("reset", this.shells.length, JSON.stringify(info, null, 2))
|
|
201
205
|
if (this.shells) {
|
|
202
|
-
|
|
203
|
-
|
|
206
|
+
let shells = []
|
|
207
|
+
for(let i=0; i<this.shells.length; i++) {
|
|
208
|
+
shells.push(this.shells[i])
|
|
209
|
+
}
|
|
210
|
+
for(let shell of shells) {
|
|
211
|
+
console.log("[Kill]", { id: shell.id, group: shell.group, cmd: shell.cmd })
|
|
204
212
|
shell.kill("", true)
|
|
205
213
|
}
|
|
206
214
|
}
|