summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormetalefty <meta@vmeta.jp>2018-09-12 15:51:07 +0900
committerGitHub <noreply@github.com>2018-09-12 15:51:07 +0900
commit98e8cec83d1cc0810cc625f7a5727af7e848f779 (patch)
tree76ba15086ac320cd868315268a8e3e46a3427f68
parent5f30ca2f87a1a6b329edead035143998c93f5bb9 (diff)
parent2a85a65d0843b8c0b3ca3169b6cd41246aaaabe2 (diff)
downloadxrdp-proprietary-98e8cec83d1cc0810cc625f7a5727af7e848f779.tar.gz
xrdp-proprietary-98e8cec83d1cc0810cc625f7a5727af7e848f779.zip
Merge pull request #1206 from metalefty/xrdp-dis
show more helpful message if xrdp-dis failed
-rw-r--r--sesman/tools/dis.c5
1 files changed, 5 insertions, 0 deletions
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 <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
+#include <errno.h>
#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;
}