show more helpful message if xrdp-dis failed
This commit is contained in:
parent
5f30ca2f87
commit
2a85a65d08
@ -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…
Reference in New Issue
Block a user