Commit aa3db423 authored by Alon Levy's avatar Alon Levy Committed by Gerd Hoffmann
Browse files

qxl: init_pipe_signaling: exit on failure



If pipe creation fails, exit, don't log and continue. Fix indentation at
the same time.

Signed-off-by: default avatarAlon Levy <alevy@redhat.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 6ec5dae5
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -1453,8 +1453,9 @@ static void qxl_send_events(PCIQXLDevice *d, uint32_t events)
static void init_pipe_signaling(PCIQXLDevice *d)
{
    if (pipe(d->pipe) < 0) {
       dprint(d, 1, "%s: pipe creation failed\n", __FUNCTION__);
       return;
        fprintf(stderr, "%s:%s: qxl pipe creation failed\n",
                __FILE__, __func__);
        exit(1);
    }
    fcntl(d->pipe[0], F_SETFL, O_NONBLOCK);
    fcntl(d->pipe[1], F_SETFL, O_NONBLOCK);