mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +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) {
|
if (pipenode->readers == 0) {
|
||||||
// TODO throw SIGPIPE
|
if (_cpu()->thread->proc)
|
||||||
|
signal_signalproc(_cpu()->thread->proc, SIGPIPE);
|
||||||
|
|
||||||
error = EPIPE;
|
error = EPIPE;
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user