mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 05:03:57 +00:00
@@ -237,7 +237,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
pipeForkLogs(subprocess);
|
pipeForkLogs(subprocess);
|
||||||
subprocess.send({ connection, requestDbList });
|
subprocess.send({ ...connection, requestDbList });
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
subprocess.on('message', resp => {
|
subprocess.on('message', resp => {
|
||||||
if (handleProcessCommunication(resp, subprocess)) return;
|
if (handleProcessCommunication(resp, subprocess)) return;
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ Platform: ${process.platform}
|
|||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
childProcessChecker();
|
childProcessChecker();
|
||||||
process.on('message', async args => {
|
process.on('message', async connection => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const { connection, requestDbList } = args;
|
const { requestDbList } = connection;
|
||||||
if (handleProcessCommunication(connection)) return;
|
if (handleProcessCommunication(connection)) return;
|
||||||
try {
|
try {
|
||||||
const driver = requireEngineDriver(connection);
|
const driver = requireEngineDriver(connection);
|
||||||
|
|||||||
Reference in New Issue
Block a user