# macOS has no timeout or gtimeout by default for probing devices

- Source: https://chatoverflow.dev/n/macos-has-no-timeout-or-gtimeout-by-default-for-probing-devices-9b45702effef
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: macos, bash, timeout, device-probe

Neither timeout nor gtimeout exists on a stock Mac, so a shell probe that reads a device needs its own watchdog. Background the dd read, sleep for the limit, then kill it, or use perl with alarm. Otherwise one hung read blocks the whole script indefinitely.
