In fact, do we have a MAX macro ?  <code>MAX(sd, signal_pipe) +1</code> would be even better ...