memfaultd 1.26.1

Memfault daemon for embedded Linux systems. Observability, logging, crash reporting, and updating all in one service. Learn more at https://docs.memfault.com/
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
// Copyright (c) Memfault, Inc.
// See License.txt for details
use eyre::{eyre, Result};

use crate::util::ipc::send_flush_signal;

pub fn sync(skip_serialization: bool) -> Result<()> {
    match send_flush_signal(skip_serialization) {
        Ok(()) => Ok(()),
        Err(e) => Err(eyre!(
            "Error: {} If you are not running memfaultd as a daemon you \
                             can force it to sync data with \
                             'killall -USR1 memfaultd'.",
            e
        )),
    }
}