Could you please expand on that? Is the method I outlined in the post not safe IRT working with errno?
errno