1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix PipeNode destructor not being virtual.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-05-09 21:58:53 +02:00
parent e259e8ae52
commit 86c5bc52b3

View file

@ -463,12 +463,14 @@ class PipeNode : public AbstractInode
{ {
public: public:
PipeNode(dev_t dev, uid_t owner, gid_t group, mode_t mode); PipeNode(dev_t dev, uid_t owner, gid_t group, mode_t mode);
~PipeNode(); virtual ~PipeNode();
bool Connect(PipeNode* destination);
virtual ssize_t read(ioctx_t* ctx, uint8_t* buf, size_t count); virtual ssize_t read(ioctx_t* ctx, uint8_t* buf, size_t count);
virtual ssize_t write(ioctx_t* ctx, const uint8_t* buf, size_t count); virtual ssize_t write(ioctx_t* ctx, const uint8_t* buf, size_t count);
virtual int poll(ioctx_t* ctx, PollNode* node); virtual int poll(ioctx_t* ctx, PollNode* node);
public:
bool Connect(PipeNode* destination);
private: private:
PipeEndpoint endpoint; PipeEndpoint endpoint;