MCPcopy Index your code
hub / github.com/RustPython/RustPython / closelog

Function closelog

crates/stdlib/src/syslog.rs:124–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123 #[pyfunction]
124 fn closelog() {
125 if global_ident().read().is_some() {
126 let mut locked_ident = global_ident().write();
127 unsafe { libc::closelog() };
128 *locked_ident = None;
129 }
130 }
131
132 #[pyfunction]
133 fn setlogmask(maskpri: i32) -> i32 {

Callers

nothing calls this directly

Calls 3

global_identFunction · 0.85
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected