summaryrefslogtreecommitdiffstats
path: root/xrdpapi/xrdpapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdpapi/xrdpapi.c')
-rw-r--r--xrdpapi/xrdpapi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c
index 4cf8db71..23630804 100644
--- a/xrdpapi/xrdpapi.c
+++ b/xrdpapi/xrdpapi.c
@@ -129,7 +129,10 @@ WTSVirtualChannelOpenEx(unsigned int SessionId, const char *pVirtualName,
/* set non blocking */
llong = fcntl(wts->fd, F_GETFL);
llong = llong | O_NONBLOCK;
- fcntl(wts->fd, F_SETFL, llong);
+ if (fcntl(wts->fd, F_SETFL, llong) < 0)
+ {
+ LLOGLN(10, ("WTSVirtualChannelOpenEx: set non-block mode failed"));
+ }
/* connect to chansrv session */
memset(&s, 0, sizeof(struct sockaddr_un));