From b2189ae88b795e3aad8c6d07ec93989473718123 Mon Sep 17 00:00:00 2001 From: Johannes Schlatow Date: Thu, 27 Oct 2022 15:19:18 +0200 Subject: [PATCH] vfs/log: block indefinitely on read access With this change, the log file system mimics the behaviour of /dev/stdin. Fixes #4649 --- repos/os/src/lib/vfs/log_file_system.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repos/os/src/lib/vfs/log_file_system.h b/repos/os/src/lib/vfs/log_file_system.h index c3711fd886..c615de8ad9 100644 --- a/repos/os/src/lib/vfs/log_file_system.h +++ b/repos/os/src/lib/vfs/log_file_system.h @@ -91,10 +91,10 @@ class Vfs::Log_file_system : public Single_file_system if (_line_pos > 0) _flush(); } - Read_result read(char *, file_size, file_size &out_count) override + Read_result read(char *, file_size, file_size &) override { - out_count = 0; - return READ_OK; + /* block indefinitely - mimics stdout resp. stdin w/o input */ + return READ_QUEUED; } Write_result write(char const *src, file_size count,