@ornncompute/cli 0.2.13 → 0.2.15
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/README.md +6 -2
- package/package.json +1 -1
- package/src/signals.mjs +2 -2
package/README.md
CHANGED
|
@@ -380,10 +380,14 @@ manual cleanup after confirming that no updater is running: deleting them
|
|
|
380
380
|
automatically could remove a live lock created by an older CLI. PID reuse can
|
|
381
381
|
also require manual cleanup. An installation marker keeps the lock held if the
|
|
382
382
|
CLI is killed during installation, because its package installer may still be
|
|
383
|
-
running. Confirm that installer has stopped before removing the lock.
|
|
384
|
-
|
|
383
|
+
running. Confirm that installer has stopped before removing the lock. Repeated
|
|
384
|
+
Ctrl+C or SIGTERM releases the lock after installer teardown. An interrupted
|
|
385
|
+
package installation may still require reinstalling the CLI if the package
|
|
385
386
|
manager has already removed the previous version.
|
|
386
387
|
|
|
388
|
+
On POSIX, SIGHUP and SIGQUIT are forwarded to the package installer so it can
|
|
389
|
+
exit before the update lock is released.
|
|
390
|
+
|
|
387
391
|
## Deployment
|
|
388
392
|
|
|
389
393
|
`deploy-cli-pipeline.yml` publishes `@ornncompute/cli` from `main`. Staging
|
package/package.json
CHANGED
package/src/signals.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const FORWARDABLE_SIGNALS =
|
|
2
|
-
process.platform === "win32" ? ["SIGINT", "SIGTERM"] : ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
2
|
+
process.platform === "win32" ? ["SIGINT", "SIGTERM"] : ["SIGINT", "SIGTERM", "SIGHUP", "SIGQUIT"];
|
|
3
3
|
|
|
4
4
|
export function forwardSignals(signalSource, child, onSignal) {
|
|
5
5
|
const listeners = FORWARDABLE_SIGNALS.map((signal) => {
|
|
@@ -9,7 +9,7 @@ export function forwardSignals(signalSource, child, onSignal) {
|
|
|
9
9
|
child?.kill?.(signal);
|
|
10
10
|
} catch {}
|
|
11
11
|
};
|
|
12
|
-
signalSource.
|
|
12
|
+
signalSource.on(signal, listener);
|
|
13
13
|
return [signal, listener];
|
|
14
14
|
});
|
|
15
15
|
return () => {
|