mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
pipefs: throw SIGPIPE
This commit is contained in:
@@ -173,7 +173,9 @@ int pipefs_write(vnode_t *node, void *buffer, size_t size, uintmax_t offset, int
|
||||
}
|
||||
|
||||
if (pipenode->readers == 0) {
|
||||
// TODO throw SIGPIPE
|
||||
if (_cpu()->thread->proc)
|
||||
signal_signalproc(_cpu()->thread->proc, SIGPIPE);
|
||||
|
||||
error = EPIPE;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user