mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-10 05:46:48 +00:00
Warn unsupported clone flags instead of panic
This commit is contained in:
parent
9a540d0fb6
commit
3d12ccdbea
@ -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(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user