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 4765cff..ee1638d 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;