]> xenbits.xensource.com Git - osstest.git/commitdiff
daemonlib: Provide a "noop" command
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 28 Sep 2020 11:37:33 +0000 (12:37 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 28 Sep 2020 12:06:06 +0000 (13:06 +0100)
We are going to want clients to speak before waiting for the server
banner.  A noop command is useful for that.

Putting this here makes it apply to both ownerdaemon and queuedaemon.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tcl/daemonlib.tcl

index 1e86d5f466f082fca6070a53cf2142d8a1de2867..747deab1f4865bd0fdb8241bf259638bd6dcbcfe 100644 (file)
@@ -124,6 +124,10 @@ proc puts-chan {chan m} {
     puts $chan $m
 }
 
+proc cmd/noop {chan desc} {
+    puts-chan $chan "OK noop"
+}
+
 #---------- data ----------
 
 proc puts-chan-data {chan m data} {