summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-01-11 19:46:24 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-01-11 19:46:24 (GMT)
commit16797549c7788b05583f241e5c788a666debf6d0 (patch)
treea54a3a9330de65cad9b70e4cb28ce03d90ad2aac
parentf8f458ca79d2f3a840ee87dbed9896670ed9e8e6 (diff)
fixed return_value bug at serial-client
-rw-r--r--serialclient.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/serialclient.c b/serialclient.c
index f81c7cb..3cb0b0c 100644
--- a/serialclient.c
+++ b/serialclient.c
@@ -127,8 +127,10 @@ int main_loop(int serial_fd, int cmd_fd, options_t* opt)
if(FD_ISSET(serial_fd, &tmpfds))
return_value = process_data(serial_fd, cmd_fd);
- if(FD_ISSET(cmd_fd, &tmpfds))
+ if(FD_ISSET(cmd_fd, &tmpfds)) {
return_value = process_data(cmd_fd, serial_fd);
+ if(return_value == 2) return_value = 3;
+ }
}
signal_stop();