libfreerdp-core/server: unix socket listener must be nonblocking.

This commit is contained in:
Vic Lee 2012-05-23 14:26:41 +08:00
parent a462e8cb55
commit a43378ff86

View File

@ -137,6 +137,8 @@ static boolean freerdp_listener_open_local(freerdp_listener* instance, const cha
return false;
}
fcntl(sockfd, F_SETFL, O_NONBLOCK);
addr.sun_family = AF_UNIX;
strncpy(addr.sun_path, path, sizeof(addr.sun_path));
unlink(path);