changeset 18527:cf9e0cbf55a9

script: Updated comment to describe the current script protocol.
author Timo Sirainen <tss@iki.fi>
date Wed, 06 May 2015 11:10:09 +0300
parents 2a2b3897dfe1
children 956e152467de
files src/util/script.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/util/script.c	Tue May 05 23:07:03 2015 +0300
+++ b/src/util/script.c	Wed May 06 11:10:09 2015 +0300
@@ -78,14 +78,17 @@
 	/* Input contains:
 
 	   VERSION .. <lf>
-	   [timeout=<timeout>]
-	   <noreply> | "-" <lf>
+	   [alarm=<secs> <lf>]
+	   [noreply <lf>]
 
 	   arg 1 <lf>
 	   arg 2 <lf>
 	   ...
 	   <lf>
 	   DATA
+
+	   It could be thought of either as a feature or a bug that alarm and
+	   noreply settings are mixed together with regular args..
 	*/		
 	alarm(SCRIPT_READ_TIMEOUT_SECS);
 	scanpos = 1;