[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PATCH] Fix alarm_timer race with select
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] Re: [PATCH] Fix alarm_timer race with select |
Date: |
Wed, 5 Nov 2008 12:36:50 +0000 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Jan Kiszka wrote:
> + if (pipe(fds) || fcntl(fds[0], F_SETFL, O_NONBLOCK)
> + || fcntl(fds[1], F_SETFL, O_NONBLOCK)) {
Is this a portable way to set O_NONBLOCK on all host platforms?
I'm under the impression you need to ues F_GETFL first, in case
other flags are important to the functioning of the file descriptor.
-- Jamie