Use signalfd to handle SIGCHLD