diff options
| author | Stefan Hajnoczi | 2016-10-14 11:00:54 +0200 |
|---|---|---|
| committer | Michael Roth | 2016-11-01 01:21:22 +0100 |
| commit | f06b2031a31cdd3acf6f61a977e505b8c6b58f73 (patch) | |
| tree | ca7570d52247f66c31e0aef5bd6a2e207cebf6c6 /include/exec/user | |
| parent | qga: drop unused sockaddr in accept(2) call (diff) | |
| download | qemu-f06b2031a31cdd3acf6f61a977e505b8c6b58f73.tar.gz qemu-f06b2031a31cdd3acf6f61a977e505b8c6b58f73.tar.xz qemu-f06b2031a31cdd3acf6f61a977e505b8c6b58f73.zip | |
qga: drop unnecessary GA_CHANNEL_UNIX_LISTEN checks
Throughout the code there are c->listen_channel checks which manage the
listen socket file descriptor (waiting for accept(2), closing the file
descriptor, etc). These checks are currently preceded by explicit
c->method == GA_CHANNEL_UNIX_LISTEN checks.
Explicit GA_CHANNEL_UNIX_LISTEN checks are not necessary since serial
channel types do not create the listen channel (c->listen_channel).
As more listen channel types are added, explicitly checking all of them
becomes messy. Rely on c->listen_channel to determine whether or not a
listen socket file descriptor is used.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
