+ timeout = get_notify_sock_timeout();
+ if (timeout > 0) {
+ ret = ustcomm_setsockopt_rcv_timeout(sock_info->notify_socket,
+ timeout);
+ if (ret < 0) {
+ WARN("Error setting socket receive timeout");
+ }
+ ret = ustcomm_setsockopt_snd_timeout(sock_info->notify_socket,
+ timeout);
+ if (ret < 0) {
+ WARN("Error setting socket send timeout");
+ }
+ } else if (timeout == -1) {
+ ret = fcntl(sock_info->notify_socket, F_SETFL, O_NONBLOCK);
+ if (ret < 0) {
+ WARN("Error setting socket to non-blocking");
+ }
+ } else {
+ if (timeout != 0) {
+ WARN("Unsuppoorted timeout value %ld", timeout);
+ }
+ }
+