diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-08-14 22:54:03 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-08-14 22:56:45 -0500 |
commit | 5bd2b86ace44fe8d0e28c12fa31a80468a2f0fcd (patch) | |
tree | 0c65cc0cc7902465a8e7e1b3852104736217c485 /src/cbs.c | |
parent | 7893cc3ef24782a7f49e9366dc30f74ea6edd2f0 (diff) | |
download | ofono-5bd2b86ace44fe8d0e28c12fa31a80468a2f0fcd.tar.bz2 |
gatserver: Refactor IO code
The current GAtServer implementation had nasty corner cases where
multiple commands were issued on the same command line. The
server_suspend had no effect and we ended up processing the second
command anyway, resulting in interesting side-effects or crashes.
This commit simply discards the rest of the read input if the server
starts processing a command. Since we do not yet support command
abortion we also discard data that arrives when command is being
processed.
Diffstat (limited to 'src/cbs.c')
0 files changed, 0 insertions, 0 deletions