fix(debug): replaced SIGPIPE with SIGHUP to generate snapshots

This commit is contained in:
Andris Reinman 2023-10-04 10:18:13 +03:00
parent b9349f6e83
commit 7a30ed7861
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364
3 changed files with 1133 additions and 1080 deletions

2197
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -24,9 +24,9 @@
"homepage": "https://wildduck.email/", "homepage": "https://wildduck.email/",
"devDependencies": { "devDependencies": {
"ajv": "8.12.0", "ajv": "8.12.0",
"chai": "4.3.8", "chai": "4.3.10",
"docsify-cli": "4.4.4", "docsify-cli": "4.4.4",
"eslint": "8.49.0", "eslint": "8.50.0",
"eslint-config-nodemailer": "1.2.0", "eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "9.0.0", "eslint-config-prettier": "9.0.0",
"grunt": "1.6.1", "grunt": "1.6.1",
@ -43,17 +43,17 @@
}, },
"dependencies": { "dependencies": {
"@fidm/x509": "1.2.1", "@fidm/x509": "1.2.1",
"@opensearch-project/opensearch": "2.3.1", "@opensearch-project/opensearch": "2.4.0",
"@phc/pbkdf2": "1.1.14", "@phc/pbkdf2": "1.1.14",
"@postalsys/vmc": "1.0.6", "@postalsys/vmc": "1.0.6",
"@root/acme": "3.1.0", "@root/acme": "3.1.0",
"@root/csr": "0.8.1", "@root/csr": "0.8.1",
"accesscontrol": "2.2.1", "accesscontrol": "2.2.1",
"axios": "1.5.0", "axios": "1.5.1",
"base32.js": "0.1.0", "base32.js": "0.1.0",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
"bson": "6.1.0", "bson": "6.1.0",
"bullmq": "4.11.2", "bullmq": "4.12.0",
"fido2-lib": "3.4.1", "fido2-lib": "3.4.1",
"gelf": "2.0.1", "gelf": "2.0.1",
"generate-password": "1.7.0", "generate-password": "1.7.0",
@ -101,9 +101,9 @@
"unix-crypt-td-js": "1.1.4", "unix-crypt-td-js": "1.1.4",
"unixcrypt": "1.2.0", "unixcrypt": "1.2.0",
"uuid": "9.0.1", "uuid": "9.0.1",
"wild-config": "1.7.0", "wild-config": "1.7.1",
"yargs": "17.7.2", "yargs": "17.7.2",
"zone-mta": "3.6.9" "zone-mta": "3.6.10"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View file

@ -145,7 +145,7 @@ process.on('unhandledRejection', err => {
errors.notify(err); errors.notify(err);
}); });
process.on('SIGPIPE', () => { process.on('SIGHUP', () => {
// generate memory dump // generate memory dump
log.info('Process', 'PID=%s Generating heap snapshot...', process.pid); log.info('Process', 'PID=%s Generating heap snapshot...', process.pid);
let stream; let stream;