qemu-ga: Handle errors uniformely in ga_channel_open()
authorMarkus Armbruster <armbru@redhat.com>
Fri, 11 Jan 2013 10:25:02 +0000 (11:25 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 14 Jan 2013 18:08:05 +0000 (12:08 -0600)
commit7868181f98ff1fbcd7f7034153eec5e03615d023
treef21742910b9c785a0ccce41989f5f1826eb55858
parentd4f4a3efdf0a71621ae5351176f5f15b522d0026
qemu-ga: Handle errors uniformely in ga_channel_open()

We detect errors in several places.  One reports with g_error(), which
calls abort(), the others report with g_critical().  Three of them
exit(), three return false.

Always report with g_critical(), and return false.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
*minor fix-up of commit msg

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/channel-posix.c