mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix edgecase with socketpair() impacting shell and spawn (#15725)
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
||||
getBuildUrl,
|
||||
getEnv,
|
||||
getFileUrl,
|
||||
getLoggedInUserCount,
|
||||
getLoggedInUserCountOrDetails,
|
||||
getShell,
|
||||
getWindowsExitReason,
|
||||
isBuildkite,
|
||||
@@ -1499,7 +1499,7 @@ export async function main() {
|
||||
|
||||
let waitForUser = false;
|
||||
while (isCI) {
|
||||
const userCount = getLoggedInUserCount();
|
||||
const userCount = getLoggedInUserCountOrDetails();
|
||||
if (!userCount) {
|
||||
if (waitForUser) {
|
||||
!isQuiet && console.log("No users logged in, exiting runner...");
|
||||
@@ -1509,7 +1509,11 @@ export async function main() {
|
||||
|
||||
if (!waitForUser) {
|
||||
startGroup("Summary");
|
||||
console.warn(`Found ${userCount} users logged in, keeping the runner alive until logout...`);
|
||||
if (typeof userCount === "number") {
|
||||
console.warn(`Found ${userCount} users logged in, keeping the runner alive until logout...`);
|
||||
} else {
|
||||
console.warn(userCount);
|
||||
}
|
||||
waitForUser = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user