reactor: wire up shutdown() on pollable_fd

This commit is contained in:
Avi Kivity
2015-06-15 16:38:52 +03:00
parent 2a24e8f5ca
commit 31d3801215

View File

@@ -174,6 +174,7 @@ public:
future<size_t> recvmsg(struct msghdr *msg);
future<size_t> sendto(socket_address addr, const void* buf, size_t len);
file_desc& get_file_desc() const { return _s->fd; }
void shutdown(int how) { _s->fd.shutdown(how); }
void close() { _s.reset(); }
protected:
int get_fd() const { return _s->fd.get(); }