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:
Wolfgang Lux 2010-08-24 11:59:30 +00:00
parent 2df1f50945
commit 4e53fdb192
2 changed files with 11 additions and 0 deletions

View file

@ -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)
{