From 2a85a65d0843b8c0b3ca3169b6cd41246aaaabe2 Mon Sep 17 00:00:00 2001
From: Koichiro IWAO
Date: Tue, 11 Sep 2018 11:22:15 +0900
Subject: [PATCH] show more helpful message if xrdp-dis failed
---
sesman/tools/dis.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sesman/tools/dis.c b/sesman/tools/dis.c
index 408027ca..728be4a9 100644
--- a/sesman/tools/dis.c
+++ b/sesman/tools/dis.c
@@ -26,6 +26,7 @@
#include
#include
#include
+#include
#include "xrdp_sockets.h"
@@ -76,6 +77,10 @@ int main(int argc, char **argv)
{
printf("message sent ok\n");
}
+ else
+ {
+ printf("message send failed: %s\n", strerror(errno));
+ }
return 0;
}