mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 01:23:34 +08:00
logger: register shutdown hook for graceful shutdown
This will avoid file system corruptions in cases where px4_shutdown_request is used. However it will not help obviously when the battery is pulled directly.
This commit is contained in:
@@ -111,6 +111,12 @@ public:
|
||||
|
||||
static int start(char *const *argv);
|
||||
|
||||
/**
|
||||
* request the logger thread to stop (this method does not block).
|
||||
* @return true if the logger is stopped, false if (still) running
|
||||
*/
|
||||
static bool request_stop();
|
||||
|
||||
static void usage(const char *reason);
|
||||
|
||||
void status();
|
||||
|
||||
Reference in New Issue
Block a user