mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
No exception when closing a file more than once
This commit is contained in:
parent
3202bd00f7
commit
67c53d6598
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2024-06-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSFileHandle.m: debug log of closing a closed file handle
|
||||
rather than raising exception (reported by Wolfgang).
|
||||
|
||||
2024-05-31 Hugo Melder <hugo@algoriddim.com>
|
||||
|
||||
* Source/NSPredicate.m:
|
||||
|
|
|
@ -1620,8 +1620,8 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
{
|
||||
if (descriptor < 0)
|
||||
{
|
||||
[NSException raise: NSFileHandleOperationException
|
||||
format: @"attempt to close closed file"];
|
||||
NSDebugMLLog(@"NSFileHandle", @"close of closed file %@", self);
|
||||
return;
|
||||
}
|
||||
[self ignoreReadDescriptor];
|
||||
[self ignoreWriteDescriptor];
|
||||
|
|
Loading…
Reference in a new issue