Fix regression from 84e2c24: poll() timeout is milliseconds, not seconds

Signed-off-by: Joe Gooch <mrwizard@dok.org>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Reasonable .gitignore file