We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79d26e4 commit d83caacCopy full SHA for d83caac
resources/js/electron-plugin/src/index.ts
@@ -277,7 +277,10 @@ class NativePHP {
277
this.processes
278
.filter((p) => p !== undefined)
279
.forEach((process) => {
280
+ if (!process || !process.pid) return;
281
+
282
try {
283
+ process.kill(0); // Test if process exists (throws error if not)
284
// @ts-ignore
285
killSync(process.pid, 'SIGTERM', true); // Kill tree
286
ps.kill(process.pid); // Sometimes does not kill the subprocess of php server
0 commit comments