From f41688f647116d0a17513cc86c60cc9729da6502 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 12 Apr 2008 09:43:57 +0200 Subject: [PATCH] Handle sender commands in vss_post_select(). --- server.c | 8 -------- vss.c | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server.c b/server.c index 99482d9d..a287890c 100644 --- a/server.c +++ b/server.c @@ -523,14 +523,6 @@ genocide: exit(EXIT_FAILURE); } } - if (mmd->sender_cmd_data.cmd_num >= 0) { - int num = mmd->sender_cmd_data.cmd_num, - s = mmd->sender_cmd_data.sender_num; - - if (senders[s].client_cmds[num]) - senders[s].client_cmds[num](&mmd->sender_cmd_data); - mmd->sender_cmd_data.cmd_num = -1; - } if (!FD_ISSET(sockfd, &rfds)) goto repeat; diff --git a/vss.c b/vss.c index a59c00f8..704c3930 100644 --- a/vss.c +++ b/vss.c @@ -490,6 +490,14 @@ void vss_post_select(fd_set *rfds, fd_set *wfds) { int ret, i; + if (mmd->sender_cmd_data.cmd_num >= 0) { + int num = mmd->sender_cmd_data.cmd_num, + s = mmd->sender_cmd_data.sender_num; + + if (senders[s].client_cmds[num]) + senders[s].client_cmds[num](&mmd->sender_cmd_data); + mmd->sender_cmd_data.cmd_num = -1; + } if (afsss != AFS_SOCKET_CHECK_FOR_WRITE) { if (FD_ISSET(afs_socket, rfds)) recv_afs_result(); -- 2.39.5