signal.c: mark the read and write ends of the signal pipe non-blocking.