mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
fix(electron): signal backend readiness over IPC (#1488)
This commit is contained in:
1 parent
407d358f6b
commit
4e652720af
3 files changed
+161
No files matched your search
@@ -300,6 +300,11 @@ async function provisionLocalDesktopUserIfNeeded(): Promise<void> {
|
||||
duration: Date.now() - initStartTime,
|
||||
});
|
||||
|
||||
// Log output can be filtered by the configured level or split across chunks.
|
||||
if (process.env.ELECTRON_EMBEDDED === "true") {
|
||||
process.send?.({ type: "backend-ready" });
|
||||
}
|
||||
|
||||
const gracefulShutdown = async (signal: string) => {
|
||||
systemLogger.info(`Received ${signal}, initiating graceful shutdown...`, {
|
||||
operation: "shutdown",
|
||||
|
||||
Reference in new issue
Block a user