mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-09 01:06:11 +00:00
SystemMonitor: Display whether an fd is cloexec and blocking
This commit is contained in:
committed by
Andreas Kling
parent
9a41dda029
commit
801fe7beac
@@ -19,6 +19,12 @@ ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget(GWidget* parent)
|
||||
pid_fds_fields.empend("Access", TextAlignment::CenterLeft, [](auto& object) {
|
||||
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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user