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

View file

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