summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-03-15 19:34:55 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:39 -0600
commit8a9882ecc8816b61651940549417ffda88c80163 (patch)
treeb46af1d636042f3b2d3eb3263ca6888cfcde36c5
parenta227802b4b272d53c466c679779936d2f38a465c (diff)
downloadhqemu-8a9882ecc8816b61651940549417ffda88c80163.zip
hqemu-8a9882ecc8816b61651940549417ffda88c80163.tar.gz
contrib/ivshmem-server: Print "not for production" warning
The code is okay for illustrating how things work and for testing, but its error handling make it unfit for production use. Print a warning to protect the innocent. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <1458066895-20632-41-git-send-email-armbru@redhat.com>
-rw-r--r--contrib/ivshmem-server/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ivshmem-server/main.c b/contrib/ivshmem-server/main.c
index 5afa8ee..dc64a18 100644
--- a/contrib/ivshmem-server/main.c
+++ b/contrib/ivshmem-server/main.c
@@ -200,6 +200,12 @@ main(int argc, char *argv[])
};
int ret = 1;
+ /*
+ * Do not remove this notice without adding proper error handling!
+ * Start with handling ivshmem_server_send_one_msg() failure.
+ */
+ printf("*** Example code, do not use in production ***\n");
+
/* parse arguments, will exit on error */
ivshmem_server_parse_args(&args, argc, argv);
OpenPOWER on IntegriCloud