mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 03:10:35 +08:00
74990cadc8
This fixes a potential dead-lock when 'uorb status' was used via MAVLink shell. The dead-lock chain is: DeviceMaster::lock() -> printf -> output to a pipe, which blocks until a reader reads the data. In that case it's mavlink. If mavlink makes a call that requires DeviceMaster::lock() (such as orb_exists), it dead-locks. This patch moves all printf's out of the locked state.