pipefs: throw SIGPIPE

This commit is contained in:
Matheus
2024-05-18 12:17:19 -03:00
parent 7ff10acac7
commit 15c835dacc
+3 -1
View File
@@ -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;
}