OSDN Git Service

Poll with zero timeout
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>
Tue, 23 Oct 2007 11:47:01 +0000 (11:47 -0000)
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>
Tue, 23 Oct 2007 11:47:01 +0000 (11:47 -0000)
commit7340d67f42488a315c0dd1b892d7c5e528c766d0
tree9bed9c41791c47647b28dd5be3e5457a8cbe5f5b
parent77b4b9f9b6277e21af26bd80cdaf3924f818d7a0
Poll with zero timeout

Jean-Christian de Rivaz writes:
The attached patch solve an issue I faced while using the libdbus-glib
waiting for a D-Bus message or the end of a glib timer at the same time.
This specific case of use generate a poll call with a zero timeout. On
platformes with the glibc a zero timeout poll return immetiately even if
there is no file descriptor event. But on platformes with uClibc a zero
timeout poll block until a file descriptor event occurs.
libc/sysdeps/linux/common/poll.c