Revision aa3db423 hw/qxl.c
b/hw/qxl.c | ||
---|---|---|
1452 | 1452 |
|
1453 | 1453 |
static void init_pipe_signaling(PCIQXLDevice *d) |
1454 | 1454 |
{ |
1455 |
if (pipe(d->pipe) < 0) { |
|
1456 |
dprint(d, 1, "%s: pipe creation failed\n", __FUNCTION__); |
|
1457 |
return; |
|
1458 |
} |
|
1459 |
fcntl(d->pipe[0], F_SETFL, O_NONBLOCK); |
|
1460 |
fcntl(d->pipe[1], F_SETFL, O_NONBLOCK); |
|
1461 |
fcntl(d->pipe[0], F_SETOWN, getpid()); |
|
1462 |
|
|
1463 |
qemu_thread_get_self(&d->main); |
|
1464 |
qemu_set_fd_handler(d->pipe[0], pipe_read, NULL, d); |
|
1455 |
if (pipe(d->pipe) < 0) { |
|
1456 |
fprintf(stderr, "%s:%s: qxl pipe creation failed\n", |
|
1457 |
__FILE__, __func__); |
|
1458 |
exit(1); |
|
1459 |
} |
|
1460 |
fcntl(d->pipe[0], F_SETFL, O_NONBLOCK); |
|
1461 |
fcntl(d->pipe[1], F_SETFL, O_NONBLOCK); |
|
1462 |
fcntl(d->pipe[0], F_SETOWN, getpid()); |
|
1463 |
|
|
1464 |
qemu_thread_get_self(&d->main); |
|
1465 |
qemu_set_fd_handler(d->pipe[0], pipe_read, NULL, d); |
|
1465 | 1466 |
} |
1466 | 1467 |
|
1467 | 1468 |
/* graphics console */ |
Also available in: Unified diff