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:
Beat Küng
2017-04-20 10:01:51 +02:00
committed by Lorenz Meier
parent 0165633bf3
commit 1d1eedb086
2 changed files with 20 additions and 0 deletions
+6
View File
@@ -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();