Add try_get_syslog_msg to IPC crate
This commit is contained in:
parent
82206ed93d
commit
cf16ca4b12
@ -33,3 +33,7 @@ pub fn get_syslog_msg() -> syslog_structs::Message {
|
|||||||
ipc::process_messages();
|
ipc::process_messages();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn try_get_syslog_msg() -> Option<syslog_structs::Message> {
|
||||||
|
MSG_BUF.lock().pop_front()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user