@darkhunt-security/endpoint-codex 0.9.15 → 0.9.16
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/dist/bin/backfill.mjs
CHANGED
|
@@ -18872,12 +18872,14 @@ function acquireLock(scope) {
|
|
|
18872
18872
|
}
|
|
18873
18873
|
return () => rmSync(path, { force: true });
|
|
18874
18874
|
}
|
|
18875
|
-
function isAlive(pid) {
|
|
18875
|
+
function isAlive(pid, kill = (p, s) => {
|
|
18876
|
+
process.kill(p, s);
|
|
18877
|
+
}) {
|
|
18876
18878
|
try {
|
|
18877
|
-
|
|
18879
|
+
kill(pid, 0);
|
|
18878
18880
|
return true;
|
|
18879
|
-
} catch {
|
|
18880
|
-
return
|
|
18881
|
+
} catch (err) {
|
|
18882
|
+
return err.code !== "ESRCH";
|
|
18881
18883
|
}
|
|
18882
18884
|
}
|
|
18883
18885
|
var DEFAULT_LOCK_WAIT_MS = 60 * 1e3;
|
package/dist/bin/forwarder.mjs
CHANGED
|
@@ -18872,12 +18872,14 @@ function acquireLock(scope) {
|
|
|
18872
18872
|
}
|
|
18873
18873
|
return () => rmSync(path, { force: true });
|
|
18874
18874
|
}
|
|
18875
|
-
function isAlive(pid) {
|
|
18875
|
+
function isAlive(pid, kill = (p, s) => {
|
|
18876
|
+
process.kill(p, s);
|
|
18877
|
+
}) {
|
|
18876
18878
|
try {
|
|
18877
|
-
|
|
18879
|
+
kill(pid, 0);
|
|
18878
18880
|
return true;
|
|
18879
|
-
} catch {
|
|
18880
|
-
return
|
|
18881
|
+
} catch (err) {
|
|
18882
|
+
return err.code !== "ESRCH";
|
|
18881
18883
|
}
|
|
18882
18884
|
}
|
|
18883
18885
|
var DEFAULT_LOCK_WAIT_MS = 60 * 1e3;
|
package/package.json
CHANGED