@zq-silk/yui 0.13.1 → 0.13.2
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/cli.js +5 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -547,8 +547,12 @@ export async function main() {
|
|
|
547
547
|
validateCompatibleFileTaskStore(home);
|
|
548
548
|
const controllerMethod = method;
|
|
549
549
|
const updateHandoverOwner = process.env.YUI_UPDATE_HANDOVER_OWNER_PID;
|
|
550
|
+
// A pre-fix updater cannot pass the owner environment variable to the
|
|
551
|
+
// activated restart child, but it remains that child's direct parent while
|
|
552
|
+
// holding the exact handover lock. Inherit only that OS-backed relationship;
|
|
553
|
+
// every unrelated live lock still compares foreign and fails closed.
|
|
550
554
|
const updateHandoverOwnerPid = updateHandoverOwner === undefined
|
|
551
|
-
? undefined
|
|
555
|
+
? (Number.isSafeInteger(process.ppid) && process.ppid > 0 ? process.ppid : undefined)
|
|
552
556
|
: Number(updateHandoverOwner);
|
|
553
557
|
if (updateHandoverOwnerPid !== undefined
|
|
554
558
|
&& (!Number.isSafeInteger(updateHandoverOwnerPid) || updateHandoverOwnerPid < 1)) {
|