mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
SystemMonitor: Display whether an fd is cloexec and blocking
This commit is contained in:
parent
9a41dda029
commit
801fe7beac
Notes:
sideshowbarker
2024-07-19 11:54:35 +09:00
Author: https://github.com/bugaevc
Commit: 801fe7beac
Pull-request: https://github.com/SerenityOS/serenity/pull/611
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget(GWidget* parent)
|
||||||
pid_fds_fields.empend("Access", TextAlignment::CenterLeft, [](auto& object) {
|
pid_fds_fields.empend("Access", TextAlignment::CenterLeft, [](auto& object) {
|
||||||
return object.get("seekable").to_bool() ? "Seekable" : "Sequential";
|
return object.get("seekable").to_bool() ? "Seekable" : "Sequential";
|
||||||
});
|
});
|
||||||
|
pid_fds_fields.empend("Blocking", TextAlignment::CenterLeft, [](auto& object) {
|
||||||
|
return object.get("blocking").to_bool() ? "Blocking" : "Nonblocking";
|
||||||
|
});
|
||||||
|
pid_fds_fields.empend("On exec", TextAlignment::CenterLeft, [](auto& object) {
|
||||||
|
return object.get("cloexec").to_bool() ? "Close" : "Keep";
|
||||||
|
});
|
||||||
|
|
||||||
m_table_view->set_model(GJsonArrayModel::create({}, move(pid_fds_fields)));
|
m_table_view->set_model(GJsonArrayModel::create({}, move(pid_fds_fields)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue