@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix Aphlict exit status

Summary: Fixes T6998. Based on https://groups.google.com/d/msg/nodejs/zF7GEoPccqw/n26c6gPaluwJ.

Test Plan: Ran Aphlict and forced an error. Saw error messages in the logs and also saw a non-zero exit status.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6998

Differential Revision: https://secure.phabricator.com/D11456

+9 -1
+9 -1
support/aphlict/server/aphlict_server.js
··· 43 43 44 44 var config = parse_command_line_arguments(process.argv); 45 45 46 + function set_exit_code(code) { 47 + process.on('exit', function() { 48 + process.exit(code); 49 + }); 50 + } 51 + 46 52 process.on('uncaughtException', function(err) { 47 53 var context = null; 48 54 if (err.code == 'EACCES' && err.path == config.log) { ··· 61 67 message.push(err.stack); 62 68 63 69 debug.log(message.join('\n\n')); 70 + set_exit_code(1); 64 71 }); 65 72 66 73 try { ··· 98 105 // servers. 99 106 if (config.test) { 100 107 debug.log('Configuration test OK.'); 101 - process.exit(0); 108 + set_exit_code(0); 109 + return; 102 110 } 103 111 104 112 var server;