Warn unsupported clone flags instead of panic

This commit is contained in:
Marsman1996 2024-12-19 23:25:34 +08:00 committed by Tate, Hongliang Tian
parent 9a540d0fb6
commit 3d12ccdbea

View File

@ -165,7 +165,7 @@ impl CloneFlags {
| CloneFlags::CLONE_CHILD_CLEARTID;
let unsupported_flags = *self - supported_flags;
if !unsupported_flags.is_empty() {
panic!("contains unsupported clone flags: {:?}", unsupported_flags);
warn!("contains unsupported clone flags: {:?}", unsupported_flags);
}
Ok(())
}