]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Do not call vss_post_select() if para_select() failed.
authorAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 05:31:57 +0000 (07:31 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 05:31:57 +0000 (07:31 +0200)
server.c

index 4765cff4d45db856334e1e987f9c7ca5366fe6f1..ee1638d52b24633315600c5209215eb0df2204f7 100644 (file)
--- a/server.c
+++ b/server.c
@@ -492,9 +492,9 @@ repeat:
        mmd_unlock();
        ret = para_select(max_fileno + 1, &rfds, &wfds, timeout);
        mmd_lock();
-       vss_post_select(&rfds, &wfds);
        if (ret < 0)
                goto repeat;
+       vss_post_select(&rfds, &wfds);
        for (i = 0; senders[i].name; i++) {
                if (!senders[i].post_select)
                        continue;