diff mbox series

[OSSTEST,1/5] daemonlib: Provide a "noop" command

Message ID 20200928131241.30278-2-iwj@xenproject.org (mailing list archive)
State New, archived
Headers show
Series Fix TCP problem | expand

Commit Message

Ian Jackson Sept. 28, 2020, 1:12 p.m. UTC
From: Ian Jackson <ian.jackson@eu.citrix.com>

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 | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/tcl/daemonlib.tcl b/tcl/daemonlib.tcl
index 1e86d5f4..747deab1 100644
--- a/tcl/daemonlib.tcl
+++ b/tcl/daemonlib.tcl
@@ -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} {