mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:01:36 +00:00
chore: We have a sleep at home. The sleep at home:
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { resolveLsofCommandSync } from "../infra/ports-lsof.js";
|
||||
import { sleep } from "../utils.js";
|
||||
|
||||
export type PortProcess = { pid: number; command?: string };
|
||||
|
||||
@@ -9,10 +10,6 @@ export type ForceFreePortResult = {
|
||||
escalatedToSigkill: boolean;
|
||||
};
|
||||
|
||||
function sleep(ms: number) {
|
||||
return new Promise<void>((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
export function parseLsofOutput(output: string): PortProcess[] {
|
||||
const lines = output.split(/\r?\n/).filter(Boolean);
|
||||
const results: PortProcess[] = [];
|
||||
|
||||
Reference in New Issue
Block a user