process_signals calls poll()