fixed exclusive polling on linux, added some debug