mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Restore lost assignments which ensure that only one NSFileHandle
exists for each of the standard channels. This fixes a bug where a run loop might unexpectedly stop watching the standard channels. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2df1f50945
commit
4e53fdb192
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2010-08-24 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/GSFileHandle.m (-initWithStandardError,
|
||||
-initWithStandardInput, -initWithStandardOutput): Restore lost
|
||||
assignments which ensure that only one file handle exists for each
|
||||
of the standard channels. This fixes a bug where a run loop might
|
||||
unexpectedly stop watching the standard channels.
|
||||
|
||||
2010-08-23 Riccardo Mottola (patch by Yavor Doganov)
|
||||
|
||||
* configure.ac: Include pthread.h in check program
|
||||
|
|
|
@ -1022,6 +1022,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
else
|
||||
{
|
||||
self = [self initWithFileDescriptor: 2 closeOnDealloc: NO];
|
||||
fh_stderr = self;
|
||||
}
|
||||
if (self)
|
||||
{
|
||||
|
@ -1039,6 +1040,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
else
|
||||
{
|
||||
self = [self initWithFileDescriptor: 0 closeOnDealloc: NO];
|
||||
fh_stdin = self;
|
||||
}
|
||||
if (self)
|
||||
{
|
||||
|
@ -1056,6 +1058,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
else
|
||||
{
|
||||
self = [self initWithFileDescriptor: 1 closeOnDealloc: NO];
|
||||
fh_stdout = self;
|
||||
}
|
||||
if (self)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue