mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-15 20:05:16 +02:00
The pmset probe used execFile, which in a packaged .app launched from Finder (no controlling terminal) has no valid stdin file descriptor. execFile wires the child's stdio to that invalid fd, and because the probe fires repeatedly from the detector's background poll loop, the spawn fails with `EBADF` (errno -9). This never reproduces in dev, where launching from a terminal provides a valid stdin. Switch to spawn with stdio ['ignore', 'pipe', 'pipe'] so the child's stdin points at /dev/null and no invalid parent descriptor is ever inherited. parseAssertions (and its tests) are unchanged. |
||
|---|---|---|
| .. | ||
| apps | ||
| packages | ||
| .gitignore | ||
| ANALYTICS.md | ||
| eslint.config.mts | ||
| LIVE_NOTE.md | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| tsconfig.base.json | ||