qemu-e2k/qga
Stefan Hajnoczi f06b2031a3 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>
2016-10-31 19:21:22 -05:00
..
installer qga: Workaround for console redirection from non-interactive qemu-ga service 2016-04-07 11:43:54 -05:00
vss-win32 rules.mak: quiet-command: Split command name and args to print 2016-10-06 12:11:51 +01:00
channel-posix.c qga: drop unnecessary GA_CHANNEL_UNIX_LISTEN checks 2016-10-31 19:21:22 -05:00
channel-win32.c qga: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
channel.h qga: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
commands-posix.c coccinelle: Remove unnecessary variables for function return value 2016-06-20 16:38:13 +02:00
commands-win32.c qga: minimal support for fstrim for Windows guests 2016-10-31 19:09:21 -05:00
commands.c qga/command: use QEMU atomic primitives 2016-10-04 10:00:26 +02:00
guest-agent-command-state.c qga: free remaining leaking state 2016-09-08 17:57:32 +04:00
guest-agent-core.h qga: free remaining leaking state 2016-09-08 17:57:32 +04:00
main.c qga: free remaining leaking state 2016-09-08 17:57:32 +04:00
Makefile.objs
qapi-schema.json
service-win32.c qga: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
service-win32.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
vss-win32.c qga: fix w32 breakage due to missing osdep.h includes 2016-02-25 10:54:32 -06:00
vss-win32.h