new example: wrapper for POSIX select