Author: rfm
Date: Fri Oct 30 12:02:26 2015
New Revision: 39107
URL: http://svn.gna.org/viewcvs/gnustep?rev=39107&view=rev
Log:
warn about timeout limits
Modified:
libs/ec/trunk/EcProcess.h
libs/ec/trunk/EcProcess.m
Modified: libs/ec/trunk/EcProcess.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.h?rev=39107&r1=39106&r2=39107&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.h (original)
+++ libs/ec/trunk/EcProcess.h Fri Oct 30 12:02:26 2015
@@ -811,7 +811,10 @@
*/
- (void) setCmdDebug: (NSString*)mode withDescription: (NSString*)desc;
-/* Sets the interval between timeouts.
+/* Sets the interval between timeouts.<br />
+ * Any value below 0.001 is ignored and 10 is used.<br />
+ * Any value above 300 is ignored and 60 is used.<br />
+ * The default value is 60 seconds.
*/
- (void) setCmdInterval: (NSTimeInterval)interval;
Modified: libs/ec/trunk/EcProcess.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.m?rev=39107&r1=39106&r2=39107&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.m (original)
+++ libs/ec/trunk/EcProcess.m Fri Oct 30 12:02:26 2015
@@ -4917,10 +4917,14 @@
{
NSTimeInterval when = cmdTimInterval;
- if (delay == YES && when < 1.0)
+ if (when < 0.001 || (when < 10.0 && YES == delay))
{
when = 10.0;
}
+ if (when > 300.0)
+ {
+ when = 60.0;
+ }
cmdPTimer =
[NSTimer scheduledTimerWithTimeInterval: when
target: self
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs