[*] you slimey rats dont get vtable exec that easily

This commit is contained in:
Reece Wilson 2023-12-24 06:54:19 +00:00
parent c5656a8843
commit ac33e6bb7f
2 changed files with 11 additions and 2 deletions

View File

@ -177,6 +177,10 @@ namespace Aurora::IO::IPC
IPCPipeImpl::~IPCPipeImpl() IPCPipeImpl::~IPCPipeImpl()
{ {
if (this->fsHandle_)
{
AuStaticCast<AFileHandle>(this->fsHandle_)->pIPCPipe = nullptr;
}
} }
AuSPtr<Loop::ILoopSource> IPCPipeImpl::AsReadChannelIsOpen() AuSPtr<Loop::ILoopSource> IPCPipeImpl::AsReadChannelIsOpen()

View File

@ -32,6 +32,11 @@ namespace Aurora::IO::IPC
{ {
int fd {-1}; int fd {-1};
if (this->fsHandle_)
{
AuStaticCast<AFileHandle>(this->fsHandle_)->pIPCPipe = nullptr;
}
if (secondary[0] == -1) if (secondary[0] == -1)
{ {
this->mutex_->Unlock(); this->mutex_->Unlock();
@ -60,8 +65,8 @@ namespace Aurora::IO::IPC
::close(fd); ::close(fd);
} }
fsHandle_.reset(); this->fsHandle_.reset();
fsStream_.reset(); this->fsStream_.reset();
} }