mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibCore+Everywhere: Move SeekMode out of IODevice
This commit is contained in:
parent
a91a49337c
commit
1ae8775a1b
Notes:
sideshowbarker
2024-07-18 18:18:30 +09:00
Author: https://github.com/alimpfard
Commit: 1ae8775a1b
Pull-request: https://github.com/SerenityOS/serenity/pull/7056
5 changed files with 10 additions and 10 deletions
|
@ -20,7 +20,7 @@ HashMap<uid_t, String> ProcessStatisticsReader::s_usernames;
|
|||
Optional<HashMap<pid_t, Core::ProcessStatistics>> ProcessStatisticsReader::get_all(RefPtr<Core::File>& proc_all_file)
|
||||
{
|
||||
if (proc_all_file) {
|
||||
if (!proc_all_file->seek(0, Core::File::SeekMode::SetPosition)) {
|
||||
if (!proc_all_file->seek(0, Core::SeekMode::SetPosition)) {
|
||||
fprintf(stderr, "ProcessStatisticsReader: Failed to refresh /proc/all: %s\n", proc_all_file->error_string());
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue