ework-daemon 0.4.32 → 0.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/opencode.ts +3 -1
package/package.json
CHANGED
package/src/opencode.ts
CHANGED
|
@@ -1727,7 +1727,9 @@ export class Engine {
|
|
|
1727
1727
|
|
|
1728
1728
|
try {
|
|
1729
1729
|
const cmdline = readFileSync(`/proc/${s.opencodePid}/cmdline`, "utf8");
|
|
1730
|
-
|
|
1730
|
+
const exe = cmdline.split("\0")[0] ?? "";
|
|
1731
|
+
const base = exe.split("/").pop() ?? "";
|
|
1732
|
+
if (base !== binaryName && base !== "opencode" && base !== "pi") continue;
|
|
1731
1733
|
} catch { continue; }
|
|
1732
1734
|
|
|
1733
1735
|
let ppid = -1;
|