fix #99 / Connect error descriptions are invalid
This commit is contained in:
parent
5c13cbb08f
commit
ffecef901a
@ -128,6 +128,10 @@ namespace ix
|
||||
optval != 0)
|
||||
{
|
||||
pollResult = PollResultType::Error;
|
||||
|
||||
// set errno to optval so that external callers can have an
|
||||
// appropriate error description when calling strerror
|
||||
errno = optval;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user