BTW, mixing pipes and sockets may not be all that portable. On some systems (NT, MacOS, BeoOS?, etc.), socket descriptors are not interoperable with file descriptors.... On such systems, you can only select(2) on socket descriptors. Kurt