Move loop_select. Fix sigaction conflict.