MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / cleanupAndQuitApp

Function cleanupAndQuitApp

runtime/src/js/misc.js:141–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139// This function is used to kill the server process, remove the log files
140// and quit the application.
141export const cleanupAndQuitApp = () => {
142 // Remove the server log file on exit
143 removeLogFile();
144
145 // Killing pgAdmin4 server process if application quits
146 if (pgadminServerProcess != null) {
147 try {
148 process.kill(pgadminServerProcess.pid);
149 }
150 catch (e) {
151 console.warn('Failed to kill server process.', e);
152 }
153 }
154
155 session.defaultSession.clearStorageData({
156 storages: ['cookies', 'localstorage'],
157 });
158};

Callers

nothing calls this directly

Calls 1

removeLogFileFunction · 0.85

Tested by

no test coverage detected