25 May
2015
25 May
'15
10:26 p.m.
On 25 May 2015 at 15:29, Rob Stewart wrote:
I would imagine destroying an open file handle would close it. Anyway, that really isn't important to the code examples given the topic, it was never mentioned what a handle_type is, I had an afio::async_io_handle in mind but it doesn't matter.
Your example calls ::open() and fd is an int.
Sorry, I must be missing something really obvious here. I was assuming that handle_type consumes a valid fd and takes ownership of it. Are not the examples correct then, or if a particular example (of the four) is wrong, can you say which one? Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/