]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
gui: mark all fds used for select() as non-blocking.
[paraslash.git] / client_common.c
index c2ae2d315fc650f0e4fc6bd1dc267d34800a2983..9b241efe722bc8d4f6e926a9077e0e32797b73e2 100644 (file)
@@ -320,6 +320,9 @@ int client_open(struct private_client_data *pcd)
        if (ret < 0)
                goto out;
        pcd->status = CL_CONNECTED;
+       ret = mark_fd_nonblock(pcd->fd);
+       if (ret < 0)
+               goto out;
        pcd->task.pre_select = client_pre_select;
        pcd->task.post_select = client_post_select;
        pcd->task.private_data = pcd;