pinokiod 2.14.9 → 2.15.0
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 +10 -3
- package/package.json +1 -1
package/kernel/shells.js
CHANGED
|
@@ -198,10 +198,17 @@ class Shells {
|
|
|
198
198
|
return this.kill(request, message)
|
|
199
199
|
}
|
|
200
200
|
reset() {
|
|
201
|
-
|
|
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))
|
|
202
205
|
if (this.shells) {
|
|
203
|
-
|
|
204
|
-
|
|
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 })
|
|
205
212
|
shell.kill("", true)
|
|
206
213
|
}
|
|
207
214
|
}
|