coverity: fixed unchecked return value from library

This commit is contained in:
Laxmikant Rashinkar
2014-07-20 13:14:09 -07:00
parent 023c0b5bc1
commit a990287c46
7 changed files with 88 additions and 23 deletions
+4 -1
View File
@@ -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));