summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}