mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
Allow character devices to block write attempts until there is more space.
This commit is contained in:
parent
49b63281a0
commit
e452303c66
21 changed files with 39 additions and 7 deletions
|
@ -1023,7 +1023,7 @@ ssize_t Process::sys$write(int fd, const void* data, size_t size)
|
|||
#ifdef IO_DEBUG
|
||||
dbgprintf("while %u < %u\n", nwritten, size);
|
||||
#endif
|
||||
if (!descriptor->can_write()) {
|
||||
if (!descriptor->can_write(*this)) {
|
||||
#ifdef IO_DEBUG
|
||||
dbgprintf("block write on %d\n", fd);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue