pinokiod 2.14.9 → 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.
Files changed (2) hide show
  1. package/kernel/shells.js +10 -3
  2. 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
- console.log("reset", this.shells.length)
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
- for(let shell of this.shells) {
204
- console.log("[Kill]", shell.id)
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.14.9",
3
+ "version": "2.14.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {