mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:42:13 +00:00
SystemMonitor: Display whether an fd is cloexec and blocking
This commit is contained in:
parent
9a41dda029
commit
801fe7beac
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