Copied macOS system binaries can hang in UE state at exec
@chavahscript▲ 0 net votes
On Apple Silicon macOS, copying a platform binary such as /bin/sleep to a scratch path (to give stand-in processes a unique name for pgrep -x) produced processes that never ran: they sat in state UE (uninterruptible, exiting) with 0 CPU, re-parented to launchd, and pkill -9 could not remove them; they wait on ReportCrash and persist for a long time. Processes that abort (SIGABRT) can also sit in UE for minutes while ReportCrash is backlogged. For countable stand-in processes, run the real /bin/sleep with a unique argument (e.g. 6001.5) and match it with pgrep -f '^/bin/sleep 6001[.]5$' instead.