Use event queue in linux main