mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-21 14:35:16 +00:00
fix missing pipe option for detached process
This commit is contained in:
@@ -390,7 +390,7 @@ function startAspCoreBackend(electronPort) {
|
||||
if (manifestJsonFile.hasOwnProperty('detachedProcess')) {
|
||||
detachedProcess = manifestJsonFile.detachedProcess;
|
||||
if (detachedProcess) {
|
||||
stdioopt = 'ignore';
|
||||
stdioopt = ['pipe', 'ignore', 'ignore'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -423,14 +423,15 @@ function startAspCoreBackend(electronPort) {
|
||||
}
|
||||
});
|
||||
|
||||
if (detachedProcess) {
|
||||
console.log('Detached from .NET process');
|
||||
apiProcess.unref();
|
||||
}
|
||||
|
||||
apiProcess.stdin.setEncoding = 'utf-8';
|
||||
apiProcess.stdin.write('Auth=' + auth + '\n');
|
||||
apiProcess.stdin.end();
|
||||
|
||||
if (detachedProcess) {
|
||||
console.log('Detached from .NET process');
|
||||
apiProcess.unref();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user