Reuse function for creating sighupint topic monitor

This commit is contained in:
Johannes Altmanninger
2026-04-11 17:26:54 +08:00
parent ff284d642e
commit 63cf79f5f6

View File

@@ -391,7 +391,7 @@ fn do_write(
true
};
let mut sigcheck = SigChecker::new(Topic::SigHupInt);
let mut sigcheck = SigChecker::new_sighupint();
let mut success = str2bytes_callback(input, |buff: &[u8]| {
if buff.len() + accumlen > accum_capacity {
// We have to flush.