show more helpful message if xrdp-dis failed

master
Koichiro IWAO 6 years ago
parent 5f30ca2f87
commit 2a85a65d08
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB

@ -26,6 +26,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <errno.h>
#include "xrdp_sockets.h" #include "xrdp_sockets.h"
@ -76,6 +77,10 @@ int main(int argc, char **argv)
{ {
printf("message sent ok\n"); printf("message sent ok\n");
} }
else
{
printf("message send failed: %s\n", strerror(errno));
}
return 0; return 0;
} }

Loading…
Cancel
Save