]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commit
Switch from select() to poll() in xenconsoled's IO loop
authorWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2013 12:22:30 +0000 (12:22 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2013 12:22:30 +0000 (12:22 +0000)
commit5267d751d9e29f1bae09dad12ca32cb44b008e16
tree8f85be18bf7c29e964a7e65edc99b59a674a00fe
parentd0a831865d1331744217111ccdc2d71f3fc455a2
Switch from select() to poll() in xenconsoled's IO loop

In Linux select() typically supports up to 1024 file descriptors. This can be
a problem when user tries to boot up many guests. Switching to poll() has
minimum impact on existing code and has better scalibility.

pollfd array is dynamically allocated / reallocated. If the array fails to
expand, we just ignore the incoming fd.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/console/daemon/io.c