Don't enable device events when there is no valid filedescriptor.
[tinc] / src / mingw /
drwxr-xr-x   ..
-rw-r--r-- 3179 common.h
-rw-r--r-- 6440 device.c