mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
vfs/log: block indefinitely on read access
With this change, the log file system mimics the behaviour of /dev/stdin. Fixes #4649
This commit is contained in:
parent
7a5eab9541
commit
b2189ae88b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user