diff --git a/CHANGELOG.md b/CHANGELOG.md index b8b7c8858..f3556a6c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Pear Runtime Changelog +## v1.6.2 + +### Fixes + +* Internal - Fix process termination after unhandled error in sidecar + +## v1.6.1 + +### Fixes + +* Linux - Updated sodium-native to version 4.3.1 + ## v1.6.0 ### Features diff --git a/lib/crasher.js b/lib/crasher.js index 7367704f6..f0b050fc7 100644 --- a/lib/crasher.js +++ b/lib/crasher.js @@ -3,6 +3,7 @@ const { isBare, platform, arch } = require('which-runtime') const fs = isBare ? require('bare-fs') : require('fs') const path = isBare ? require('bare-path') : require('path') const checkout = require('../checkout') +const os = isBare ? require('bare-os') : require('os') let hasLogged = false const start = Date.now() @@ -25,7 +26,11 @@ function logCrashAndExit (logPath, errorInfo, checkout, stackTrace, err) { console.error(`Error logged at ${logPath}`) - runContext.exit(1) + if (isBare) { + os.kill(pid) + } else { + runContext.exit(1) + } } function setupCrashHandlers (processName, swap) { diff --git a/package.json b/package.json index 168abc8ac..1e62d8d30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pear", - "version": "1.6.1", + "version": "1.6.2", "main": "./boot.js", "private": true, "scripts": {