@wipcomputer/wip-ldm-os 0.4.9 → 0.4.10
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/SKILL.md +1 -1
- package/bin/ldm.js +3 -1
- package/package.json +1 -1
package/SKILL.md
CHANGED
package/bin/ldm.js
CHANGED
|
@@ -66,6 +66,8 @@ function acquireInstallLock() {
|
|
|
66
66
|
try {
|
|
67
67
|
if (existsSync(LOCK_PATH)) {
|
|
68
68
|
const lock = JSON.parse(readFileSync(LOCK_PATH, 'utf8'));
|
|
69
|
+
// Re-entrant: if we already hold the lock, allow it
|
|
70
|
+
if (lock.pid === process.pid) return true;
|
|
69
71
|
// Check if PID is still alive
|
|
70
72
|
try {
|
|
71
73
|
process.kill(lock.pid, 0); // signal 0 = just check if alive
|
|
@@ -597,7 +599,7 @@ function autoDetectExtensions() {
|
|
|
597
599
|
// ── ldm install (bare): scan system, show real state, update if needed ──
|
|
598
600
|
|
|
599
601
|
async function cmdInstallCatalog() {
|
|
600
|
-
|
|
602
|
+
// No lock here. cmdInstall() already holds it when calling this.
|
|
601
603
|
|
|
602
604
|
autoDetectExtensions();
|
|
603
605
|
|