querysub 0.208.0 → 0.209.0
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
CHANGED
|
@@ -114,12 +114,11 @@ async function getTmuxPPID(pid: string) {
|
|
|
114
114
|
}
|
|
115
115
|
const isScreenRunningProcess = measureWrap(async function isScreenRunningProcess(pid: string): Promise<boolean> {
|
|
116
116
|
try {
|
|
117
|
-
const prefix = getTmuxPrefix();
|
|
118
117
|
let ppid = (await getTmuxProcessInfo(pid))?.PPID;
|
|
119
118
|
if (!ppid) return false;
|
|
120
119
|
let parentCommand = (await getTmuxProcessInfo(ppid))?.CMD;
|
|
121
120
|
let execName = parentCommand?.split("/").at(-1);
|
|
122
|
-
return execName
|
|
121
|
+
return execName !== "tmux";
|
|
123
122
|
} catch (e: any) {
|
|
124
123
|
console.warn(`Error checking if screen is running for ${pid}: ${e.stack}`);
|
|
125
124
|
return false;
|