mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
2af79b7324
commit
50ba5b9db3
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)
|
2010-08-23 Riccardo Mottola (patch by Yavor Doganov)
|
||||||
|
|
||||||
* configure.ac: Include pthread.h in check program
|
* configure.ac: Include pthread.h in check program
|
||||||
|
|
|
@ -1022,6 +1022,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self = [self initWithFileDescriptor: 2 closeOnDealloc: NO];
|
self = [self initWithFileDescriptor: 2 closeOnDealloc: NO];
|
||||||
|
fh_stderr = self;
|
||||||
}
|
}
|
||||||
if (self)
|
if (self)
|
||||||
{
|
{
|
||||||
|
@ -1039,6 +1040,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self = [self initWithFileDescriptor: 0 closeOnDealloc: NO];
|
self = [self initWithFileDescriptor: 0 closeOnDealloc: NO];
|
||||||
|
fh_stdin = self;
|
||||||
}
|
}
|
||||||
if (self)
|
if (self)
|
||||||
{
|
{
|
||||||
|
@ -1056,6 +1058,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self = [self initWithFileDescriptor: 1 closeOnDealloc: NO];
|
self = [self initWithFileDescriptor: 1 closeOnDealloc: NO];
|
||||||
|
fh_stdout = self;
|
||||||
}
|
}
|
||||||
if (self)
|
if (self)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue