mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
don't leave an errno value which would cause a retry after a fatal error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37714 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d105539f5e
commit
665f99b634
1 changed files with 8 additions and 0 deletions
|
@ -1647,6 +1647,10 @@ static NSMutableDictionary *credentialsCache = nil;
|
|||
{
|
||||
NSLog(@"%@ in read: %@", self, p);
|
||||
}
|
||||
if (EAGAIN == errno || EINTR == errno)
|
||||
{
|
||||
errno = EBADF; // Fatal ... don't retry
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1690,6 +1694,10 @@ static NSMutableDictionary *credentialsCache = nil;
|
|||
{
|
||||
NSLog(@"%@ in write: %@", self, p);
|
||||
}
|
||||
if (EAGAIN == errno || EINTR == errno)
|
||||
{
|
||||
errno = EBADF; // Fatal ... don't retry
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue