mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 05:12:51 -04:00
make pqissl notice bad file descriptor
This commit is contained in:
parent
e4336a8a41
commit
25cb152a7e
1 changed files with 7 additions and 1 deletions
|
@ -1742,7 +1742,13 @@ bool pqissl::moretoread(uint32_t usec)
|
|||
{
|
||||
rslog(RSL_ALERT, pqisslzone,
|
||||
"pqissl::moretoread() Select ERROR!");
|
||||
RS_WARN(errno);
|
||||
RS_WARN(strerror(errno));
|
||||
|
||||
if (errno == EBADF) {
|
||||
// happens when SAM is shut down
|
||||
rslog(RSL_ALERT, pqisslzone, "pqissl::moretoread() -> calling reset()");
|
||||
reset_locked();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue