@rushstack/node-core-library
Advanced tools
Comparing version 3.45.6 to 3.45.7
@@ -314,5 +314,16 @@ "use strict"; | ||
// this is a lockfile pointing at something valid | ||
if (otherBirthtimeMs !== undefined && otherBirthtimeMs < smallestBirthTimeMs) { | ||
smallestBirthTimeMs = otherBirthtimeMs; | ||
smallestBirthTimePid = otherPid; | ||
if (otherBirthtimeMs !== undefined) { | ||
// the other lock file was created before the current earliest lock file | ||
// or the other lock file was created at the same exact time, but has earlier pid | ||
// note that it is acceptable to do a direct comparison of the PIDs in this case | ||
// since we are establishing a consistent order to apply to the lock files in all | ||
// execution instances. | ||
// it doesn't matter that the PIDs roll over, we've already | ||
// established that these processes all started at the same time, so we just | ||
// need to get all instances of the lock test to agree which one won. | ||
if (otherBirthtimeMs < smallestBirthTimeMs || | ||
(otherBirthtimeMs === smallestBirthTimeMs && otherPid < smallestBirthTimePid)) { | ||
smallestBirthTimeMs = otherBirthtimeMs; | ||
smallestBirthTimePid = otherPid; | ||
} | ||
} | ||
@@ -319,0 +330,0 @@ } |
{ | ||
"name": "@rushstack/node-core-library", | ||
"version": "3.45.6", | ||
"version": "3.45.7", | ||
"description": "Core libraries that every NodeJS toolchain project should use", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
945064
12444