diff --git a/ChangeLog b/ChangeLog index 68d21f1..0723f72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-07-20 Wolfgang Lux + + * EcConsole.m (-ecRun): Pass distantFuture to -runMode:beforeDate: + to prevent returning immediately from the run loop after recent + gnustep-base changes. + 2016-06-09 Richard Frith-Macdonald * EcControl.m: Fix bug where alerter config was not always updated diff --git a/EcConsole.m b/EcConsole.m index 0508f7e..1ad7658 100644 --- a/EcConsole.m +++ b/EcConsole.m @@ -944,6 +944,7 @@ static BOOL commandIsRepeat (NSString *string) - (int) ecRun { NSRunLoop *loop; + NSDate *distantFuture; #if defined(HAVE_LIBREADLINE) if (YES == interactive) @@ -953,8 +954,9 @@ static BOOL commandIsRepeat (NSString *string) } #endif + distantFuture = [NSDate distantFuture]; loop = [NSRunLoop currentRunLoop]; - while (YES == [loop runMode: NSDefaultRunLoopMode beforeDate: nil]) + while (YES == [loop runMode: NSDefaultRunLoopMode beforeDate: distantFuture]) { if (0 != [self cmdSignalled]) {