mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Bugfix closing file handle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3535 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9a2d79b6e3
commit
b3b5a785ff
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jan 6 22:05:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* src/UnixFileHandle.m: Fixed error in last change to ([-closeFile])
|
||||
which could fail to remove descriptors from runloop properly.
|
||||
|
||||
Wed Jan 6 10:30:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* mframe/alpha/linux-gnu: First rough attempt at making a config
|
||||
|
|
|
@ -898,6 +898,9 @@ getAddr(NSString* name, NSString* svc, NSString* pcl, struct sockaddr_in *sin)
|
|||
[NSException raise: NSFileHandleOperationException
|
||||
format: @"attempt to close closed file"];
|
||||
|
||||
[self ignoreReadDescriptor];
|
||||
[self ignoreWriteDescriptor];
|
||||
|
||||
(void)close(descriptor);
|
||||
descriptor = -1;
|
||||
acceptOK = NO;
|
||||
|
@ -915,8 +918,6 @@ getAddr(NSString* name, NSString* svc, NSString* pcl, struct sockaddr_in *sin)
|
|||
forKey: GSFileHandleNotificationError];
|
||||
[self postReadNotification];
|
||||
}
|
||||
else
|
||||
[self ignoreReadDescriptor];
|
||||
|
||||
if ([writeInfo count])
|
||||
{
|
||||
|
@ -927,8 +928,6 @@ getAddr(NSString* name, NSString* svc, NSString* pcl, struct sockaddr_in *sin)
|
|||
[self postWriteNotification];
|
||||
[writeInfo removeAllObjects];
|
||||
}
|
||||
else
|
||||
[self ignoreWriteDescriptor];
|
||||
}
|
||||
|
||||
- (void)synchronizeFile
|
||||
|
|
Loading…
Reference in a new issue