改为使用select

Signed-off-by: PKKING <pkking@ubuntu.ubuntu-domain>