• D
    Remove & ban use of select() for waiting for I/O · 8845d8df
    Daniel P. Berrange 提交于
    Use of the select() system call is inherantly dangerous since
    applications will hit a buffer overrun if any FD number exceeds
    the size of the select set size (typically 1024). Replace the
    two uses of select() with poll() and use cfg.mk to ban any
    future use of select().
    
    NB: This changes the phyp driver so that it uses an infinite
    timeout, instead of busy-waiting for 1ms at a time.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    8845d8df
cfg.mk 34.2 KB