mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
|
@ -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…
Add table
Add a link
Reference in a new issue