MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writePipeClosed

Method writePipeClosed

source/kernel/kunixsocket.cpp:761–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761U32 KUnixSocketObject::writePipeClosed(KThread* thread, bool noSignal) {
762 if (noSignal || thread->process->sigActions[K_SIGPIPE].handlerAndSigAction == K_SIG_IGN || !thread->readyForSignal(K_SIGPIPE)) {
763 return -K_EPIPE;
764 }
765 thread->runSignal(K_SIGPIPE, 0, 0);
766 return -K_CONTINUE;
767}
768
769U32 KUnixSocketObject::sendmsg(KThread* thread, const KFileDescriptorPtr& fd, U32 address, U32 flags) {
770 MsgHdr hdr = {};

Callers

nothing calls this directly

Calls 2

readyForSignalMethod · 0.80
runSignalMethod · 0.80

Tested by

no test coverage detected