livedesk 0.1.255 → 0.1.256
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/bin/livedesk.js +1 -1
- package/package.json +1 -1
package/bin/livedesk.js
CHANGED
|
@@ -272,7 +272,7 @@ async function collectUnixPortRecords(ports) {
|
|
|
272
272
|
const records = [];
|
|
273
273
|
for (const port of ports) {
|
|
274
274
|
const lsof = await runQuiet('lsof', ['-nP', '-ti', `tcp:${port}`, '-sTCP:LISTEN']);
|
|
275
|
-
if (
|
|
275
|
+
if (lsof.error?.code === 'ENOENT') {
|
|
276
276
|
throw new Error(`Could not inspect listening port TCP ${port}: ${lsof.stderr || lsof.error?.message || 'lsof failed'}`);
|
|
277
277
|
}
|
|
278
278
|
const pids = [...new Set(lsof.stdout.split(/\r?\n/).map(value => Number(value.trim())).filter(Number.isInteger))];
|